pub struct N3StarSerializer { /* private fields */ }Expand description
N3-Star Serializer
Serializes to N3-Star format with formulae and rules support.
Implementations§
Trait Implementations§
Source§impl RdfStarSerializer for N3StarSerializer
impl RdfStarSerializer for N3StarSerializer
Source§fn serialize_embedded_triple(
&self,
_virtual_id: u64,
components: &[u64; 3],
) -> Result<Vec<u8>, RdfStarSerializeError>
fn serialize_embedded_triple( &self, _virtual_id: u64, components: &[u64; 3], ) -> Result<Vec<u8>, RdfStarSerializeError>
Serialize a Virtual ID back to format-specific embedded triple syntax Read more
Source§fn serialize_triple(
&self,
subject: u64,
predicate: u64,
object: u64,
) -> Result<Vec<u8>, RdfStarSerializeError>
fn serialize_triple( &self, subject: u64, predicate: u64, object: u64, ) -> Result<Vec<u8>, RdfStarSerializeError>
Serialize a regular triple
Source§fn serialize_quad(
&self,
subject: u64,
predicate: u64,
object: u64,
_graph: u64,
) -> Result<Vec<u8>, RdfStarSerializeError>
fn serialize_quad( &self, subject: u64, predicate: u64, object: u64, _graph: u64, ) -> Result<Vec<u8>, RdfStarSerializeError>
Serialize a quad (subject, predicate, object, graph)
Source§fn supports_quads(&self) -> bool
fn supports_quads(&self) -> bool
Check if this serializer supports quad formats
Source§fn format_name(&self) -> &'static str
fn format_name(&self) -> &'static str
Get the format name for error reporting
Auto Trait Implementations§
impl Freeze for N3StarSerializer
impl RefUnwindSafe for N3StarSerializer
impl Send for N3StarSerializer
impl Sync for N3StarSerializer
impl Unpin for N3StarSerializer
impl UnsafeUnpin for N3StarSerializer
impl UnwindSafe for N3StarSerializer
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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