pub struct Document<M> {
pub statements: Vec<Meta<Statement<M>, M>>,
}
Expand description
A Turtle document.
Fields§
§statements: Vec<Meta<Statement<M>, M>>
Implementations§
Source§impl<M: Clone> Document<M>
impl<M: Clone> Document<M>
pub fn build_triples( &self, base_iri: Option<IriBuf>, generator: impl Generator<()>, ) -> Result<Vec<MetaTriple<M, ()>>, MetaError<M>>
pub fn build_triples_with<V: RdfVocabulary + IriVocabularyMut + BlankIdVocabularyMut + LanguageTagVocabularyMut>( &self, base_iri: Option<V::Iri>, vocabulary: &mut V, generator: impl Generator<V>, ) -> Result<Vec<MetaTriple<M, V>>, MetaError<M>>
Trait Implementations§
Source§impl<M: Clone, V: RdfVocabulary + IriVocabularyMut + BlankIdVocabularyMut + LanguageTagVocabularyMut, G: Generator<V>> Build<M, V, G> for Document<M>
impl<M: Clone, V: RdfVocabulary + IriVocabularyMut + BlankIdVocabularyMut + LanguageTagVocabularyMut, G: Generator<V>> Build<M, V, G> for Document<M>
Source§impl<M> Parse<M> for Document<M>
impl<M> Parse<M> for Document<M>
fn parse_from<L, F>( parser: &mut Parser<L, F>, Meta: Meta<Token, Span>, ) -> Result<Meta<Self, M>, MetaError<L::Error, M>>
fn parse_empty<L>(meta: M) -> Result<Meta<Self, M>, MetaError<L::Error, M>>where
L: Tokens,
fn parse_with<L, F>( parser: &mut Parser<L, F>, ) -> Result<Meta<Self, M>, MetaError<L::Error, M>>
fn parse<C, F, E>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error<E>, M>>
fn parse_infallible<C, F>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error, M>>
fn parse_utf8<C, F, E>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error<E>, M>>
fn parse_utf8_infallible<C, F>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error, M>>
fn parse_utf16<C, F, E>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error<E>, M>>
fn parse_utf16_infallible<C, F>( chars: C, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error, M>>
fn parse_str<F>( string: &str, metadata_builder: F, ) -> Result<Meta<Self, M>, MetaError<Error, M>>
Auto Trait Implementations§
impl<M> Freeze for Document<M>
impl<M> RefUnwindSafe for Document<M>where
M: RefUnwindSafe,
impl<M> Send for Document<M>where
M: Send,
impl<M> Sync for Document<M>where
M: Sync,
impl<M> Unpin for Document<M>where
M: Unpin,
impl<M> UnwindSafe for Document<M>where
M: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more