Skip to main content

IntoTriples

Trait IntoTriples 

Source
pub trait IntoTriples {
    type Error: Debug;

    // Required method
    fn into_triples(&self) -> Result<Vec<MyQuad<'static>>, Self::Error>;
}
Expand description

Trait for extracting normalized RDF triples from a parsed language element.

Implement this on the parsed model (the shared Turtle type) to enable a generic derive-triples ECS system. The implementation must be in a crate that owns either this trait or the element type.

Required Associated Types§

Required Methods§

Source

fn into_triples(&self) -> Result<Vec<MyQuad<'static>>, Self::Error>

Implementors§