pub struct WriterTurtleSerializer<W: Write> { /* private fields */ }Expand description
Writer-based Turtle serializer
Implementations§
Source§impl<W: Write> WriterTurtleSerializer<W>
impl<W: Write> WriterTurtleSerializer<W>
Sourcepub fn new(writer: W, config: TurtleSerializer) -> Self
pub fn new(writer: W, config: TurtleSerializer) -> Self
Create a new writer serializer
Sourcepub fn serialize_triple(&mut self, triple: TripleRef<'_>) -> SerializeResult<()>
pub fn serialize_triple(&mut self, triple: TripleRef<'_>) -> SerializeResult<()>
Serialize a triple
Sourcepub fn finish(self) -> SerializeResult<W>
pub fn finish(self) -> SerializeResult<W>
Finish serialization and return the writer
Trait Implementations§
Source§impl<W: Write> QuadSerializer<W> for WriterTurtleSerializer<W>
impl<W: Write> QuadSerializer<W> for WriterTurtleSerializer<W>
Source§fn serialize_quad(&mut self, quad: QuadRef<'_>) -> SerializeResult<()>
fn serialize_quad(&mut self, quad: QuadRef<'_>) -> SerializeResult<()>
Serialize a quad
Source§fn finish(self: Box<Self>) -> SerializeResult<W>
fn finish(self: Box<Self>) -> SerializeResult<W>
Finish serialization and return the writer
Auto Trait Implementations§
impl<W> Freeze for WriterTurtleSerializer<W>where
W: Freeze,
impl<W> RefUnwindSafe for WriterTurtleSerializer<W>where
W: RefUnwindSafe,
impl<W> Send for WriterTurtleSerializer<W>where
W: Send,
impl<W> Sync for WriterTurtleSerializer<W>where
W: Sync,
impl<W> Unpin for WriterTurtleSerializer<W>where
W: Unpin,
impl<W> UnsafeUnpin for WriterTurtleSerializer<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for WriterTurtleSerializer<W>where
W: 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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<W, T> QuadSerializerExt<W> for Twhere
W: Write,
T: QuadSerializer<W>,
impl<W, T> QuadSerializerExt<W> for Twhere
W: Write,
T: QuadSerializer<W>,
Source§fn serialize_quads<I>(&mut self, quads: I) -> QuadSerializeResult
fn serialize_quads<I>(&mut self, quads: I) -> QuadSerializeResult
Serialize multiple quads