pub struct FormatHandler { /* private fields */ }Expand description
Unified RDF format handler combining parsing and serialization
Implementations§
Source§impl FormatHandler
impl FormatHandler
Sourcepub fn parse_quads<R: Read + Send + 'static>(
&self,
reader: R,
) -> FormatResult<Vec<Quad>>
pub fn parse_quads<R: Read + Send + 'static>( &self, reader: R, ) -> FormatResult<Vec<Quad>>
Parse RDF from a reader into quads
Sourcepub fn parse_triples<R: Read + Send + 'static>(
&self,
reader: R,
) -> FormatResult<Vec<Triple>>
pub fn parse_triples<R: Read + Send + 'static>( &self, reader: R, ) -> FormatResult<Vec<Triple>>
Parse RDF from a reader into triples (only default graph)
Sourcepub fn serialize_quads<W: Write + 'static>(
&self,
writer: W,
quads: &[Quad],
) -> FormatResult<()>
pub fn serialize_quads<W: Write + 'static>( &self, writer: W, quads: &[Quad], ) -> FormatResult<()>
Serialize quads to a writer
Sourcepub fn serialize_triples<W: Write + 'static>(
&self,
writer: W,
triples: &[Triple],
) -> FormatResult<()>
pub fn serialize_triples<W: Write + 'static>( &self, writer: W, triples: &[Triple], ) -> FormatResult<()>
Serialize triples to a writer (places in default graph)
Trait Implementations§
Source§impl FormatDetection for FormatHandler
impl FormatDetection for FormatHandler
Auto Trait Implementations§
impl Freeze for FormatHandler
impl RefUnwindSafe for FormatHandler
impl Send for FormatHandler
impl Sync for FormatHandler
impl Unpin for FormatHandler
impl UnsafeUnpin for FormatHandler
impl UnwindSafe for FormatHandler
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more