pub struct TriGWriter<W: Write> { /* private fields */ }Expand description
Writer wrapper for TriG serialization
Implementations§
Source§impl<W: Write> TriGWriter<W>
impl<W: Write> TriGWriter<W>
Sourcepub fn serialize_quad(&mut self, quad: QuadRef<'_>) -> Result<(), FormatError>
pub fn serialize_quad(&mut self, quad: QuadRef<'_>) -> Result<(), FormatError>
Serialize a single quad (buffered until finish)
Sourcepub fn finish(self) -> Result<W, FormatError>
pub fn finish(self) -> Result<W, FormatError>
Finish serialization and return the writer
Trait Implementations§
Source§impl<W: Write> QuadSerializer<W> for TriGWriter<W>
Implement the QuadSerializer trait for integration with the format system
impl<W: Write> QuadSerializer<W> for TriGWriter<W>
Implement the QuadSerializer trait for integration with the format system
Source§fn serialize_quad(&mut self, quad: QuadRef<'_>) -> QuadSerializeResult
fn serialize_quad(&mut self, quad: QuadRef<'_>) -> QuadSerializeResult
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 TriGWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for TriGWriter<W>where
W: RefUnwindSafe,
impl<W> Send for TriGWriter<W>where
W: Send,
impl<W> Sync for TriGWriter<W>where
W: Sync,
impl<W> Unpin for TriGWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for TriGWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for TriGWriter<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