pub trait SemanticSource {
// Required methods
fn descriptor(&self) -> &SourceDescriptor;
fn entities(&self) -> Box<dyn Iterator<Item = &SemanticEntity> + '_>;
}Expand description
Read-only semantic view that preserves input ordering and identity scope.
Required Methods§
Sourcefn descriptor(&self) -> &SourceDescriptor
fn descriptor(&self) -> &SourceDescriptor
Describes the source and its semantic schema.
Sourcefn entities(&self) -> Box<dyn Iterator<Item = &SemanticEntity> + '_>
fn entities(&self) -> Box<dyn Iterator<Item = &SemanticEntity> + '_>
Iterates entities in the source’s declared order.