pub struct WriterJsonLdSerializer<W: Write> { /* private fields */ }Expand description
Writer-based JSON-LD serializer
This wraps the actual JSON-LD writer serializer implementation
Implementations§
Source§impl<W: Write> WriterJsonLdSerializer<W>
impl<W: Write> WriterJsonLdSerializer<W>
Sourcepub fn new(writer: W, config: JsonLdSerializer) -> Self
pub fn new(writer: W, config: JsonLdSerializer) -> Self
Create a new writer serializer
Sourcepub fn serialize_quad(&mut self, quad: QuadRef<'_>) -> SerializeResult<()>
pub fn serialize_quad(&mut self, quad: QuadRef<'_>) -> SerializeResult<()>
Serialize a quad
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 WriterJsonLdSerializer<W>
impl<W: Write> QuadSerializer<W> for WriterJsonLdSerializer<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 WriterJsonLdSerializer<W>where
W: Freeze,
impl<W> RefUnwindSafe for WriterJsonLdSerializer<W>where
W: RefUnwindSafe,
impl<W> Send for WriterJsonLdSerializer<W>where
W: Send,
impl<W> Sync for WriterJsonLdSerializer<W>where
W: Sync,
impl<W> Unpin for WriterJsonLdSerializer<W>where
W: Unpin,
impl<W> UnsafeUnpin for WriterJsonLdSerializer<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for WriterJsonLdSerializer<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