pub struct TrigStarSerializer { /* private fields */ }Expand description
Trig-Star Serializer
Serializes to Trig-Star format with named graphs.
Implementations§
Source§impl TrigStarSerializer
impl TrigStarSerializer
pub fn new() -> Self
pub fn set_current_graph(&mut self, graph_hash: u64)
Trait Implementations§
Source§impl RdfStarSerializer for TrigStarSerializer
impl RdfStarSerializer for TrigStarSerializer
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 TrigStarSerializer
impl RefUnwindSafe for TrigStarSerializer
impl Send for TrigStarSerializer
impl Sync for TrigStarSerializer
impl Unpin for TrigStarSerializer
impl UnsafeUnpin for TrigStarSerializer
impl UnwindSafe for TrigStarSerializer
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