pub struct WriterQuadSerializer<W: Write> { /* private fields */ }Expand description
Writer-based quad serializer
Implementations§
Source§impl<W: Write> WriterQuadSerializer<W>
impl<W: Write> WriterQuadSerializer<W>
Sourcepub fn new(serializer: Box<dyn QuadSerializer<W>>) -> Self
pub fn new(serializer: Box<dyn QuadSerializer<W>>) -> Self
Create a new writer serializer
Sourcepub fn serialize_quad<'a>(
&mut self,
quad: impl Into<QuadRef<'a>>,
) -> QuadSerializeResult
pub fn serialize_quad<'a>( &mut self, quad: impl Into<QuadRef<'a>>, ) -> QuadSerializeResult
Serialize a quad
Sourcepub fn serialize_triple<'a>(
&mut self,
triple: impl Into<TripleRef<'a>>,
) -> QuadSerializeResult
pub fn serialize_triple<'a>( &mut self, triple: impl Into<TripleRef<'a>>, ) -> QuadSerializeResult
Serialize a triple (placed in default graph)
Sourcepub fn serialize_quads<I>(&mut self, quads: I) -> QuadSerializeResult
pub fn serialize_quads<I>(&mut self, quads: I) -> QuadSerializeResult
Serialize multiple quads
Sourcepub fn finish(self) -> SerializeResult<W>
pub fn finish(self) -> SerializeResult<W>
Finish serialization and return the writer
Auto Trait Implementations§
impl<W> Freeze for WriterQuadSerializer<W>
impl<W> !RefUnwindSafe for WriterQuadSerializer<W>
impl<W> !Send for WriterQuadSerializer<W>
impl<W> !Sync for WriterQuadSerializer<W>
impl<W> Unpin for WriterQuadSerializer<W>
impl<W> UnsafeUnpin for WriterQuadSerializer<W>
impl<W> !UnwindSafe for WriterQuadSerializer<W>
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