Trait SemanticSource

Source
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§

Source

fn descriptor(&self) -> &SourceDescriptor

Describes the source and its semantic schema.

Source

fn entities(&self) -> Box<dyn Iterator<Item = &SemanticEntity> + '_>

Iterates entities in the source’s declared order.

Implementors§