pub enum ConfiguredQuadSerializer<W: Write> {
Direct(WriterQuadSerializer<W>),
Buffered(WriterQuadSerializer<PostProcessingWriter<W>>),
}Expand description
A quad serializer returned by ConfigurableSerializer::for_writer.
Wraps either a direct WriterQuadSerializer (when no post-processing
is required) or one operating over a PostProcessingWriter (when
sort_output and/or a custom line_ending was requested).
Variants§
Direct(WriterQuadSerializer<W>)
No post-processing: writes flow straight through to W.
Buffered(WriterQuadSerializer<PostProcessingWriter<W>>)
Buffered: writes are collected, then sorted/re-terminated and
flushed to W on finish().
Implementations§
Source§impl<W: Write + 'static> ConfiguredQuadSerializer<W>
impl<W: Write + 'static> ConfiguredQuadSerializer<W>
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 finish(self) -> SerializeResult<W>
pub fn finish(self) -> SerializeResult<W>
Finish serialization, applying any configured post-processing, and return the original writer.
Auto Trait Implementations§
impl<W> !RefUnwindSafe for ConfiguredQuadSerializer<W>
impl<W> !Send for ConfiguredQuadSerializer<W>
impl<W> !Sync for ConfiguredQuadSerializer<W>
impl<W> !UnwindSafe for ConfiguredQuadSerializer<W>
impl<W> Freeze for ConfiguredQuadSerializer<W>
impl<W> Unpin for ConfiguredQuadSerializer<W>
impl<W> UnsafeUnpin for ConfiguredQuadSerializer<W>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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