pub struct TurtleStarParser { /* private fields */ }Expand description
Turtle-Star parser implementation
Implementations§
Source§impl TurtleStarParser
impl TurtleStarParser
Sourcepub fn session_context(&self) -> u64
pub fn session_context(&self) -> u64
Session context hash stamped onto emitted quads.
Sourcepub fn stack_is_empty(&self) -> bool
pub fn stack_is_empty(&self) -> bool
Whether the embedded-triple stack is empty (no in-flight << frames).
Trait Implementations§
Source§impl RdfStarParser for TurtleStarParser
impl RdfStarParser for TurtleStarParser
Source§fn parse_embedded_triple(
&mut self,
input: &[u8],
) -> Result<(u64, [u64; 3]), RdfStarParseError>
fn parse_embedded_triple( &mut self, input: &[u8], ) -> Result<(u64, [u64; 3]), RdfStarParseError>
Parse one << s p o >> embedded triple (leading << optional),
returning the minted virtual ID and its component hashes.
Source§fn parse_triple(
&mut self,
input: &[u8],
) -> Result<(u64, u64, u64), RdfStarParseError>
fn parse_triple( &mut self, input: &[u8], ) -> Result<(u64, u64, u64), RdfStarParseError>
Parse one Turtle-Star statement into (subject, predicate, object) hashes; <<…>> terms are minted as virtual IDs.
InvalidSyntax on missing terms.
Source§fn parse_quad(
&mut self,
_input: &[u8],
) -> Result<(u64, u64, u64, u64), RdfStarParseError>
fn parse_quad( &mut self, _input: &[u8], ) -> Result<(u64, u64, u64, u64), RdfStarParseError>
Always UnsupportedFeature — Turtle-Star has no quads
(TriG-Star handles named graphs).
Source§fn supports_quads(&self) -> bool
fn supports_quads(&self) -> bool
false — no quad support in Turtle-Star.
Source§fn supports_named_graphs(&self) -> bool
fn supports_named_graphs(&self) -> bool
false — no named-graph support.
Source§fn format_name(&self) -> &'static str
fn format_name(&self) -> &'static str
"Turtle-Star".
Auto Trait Implementations§
impl Freeze for TurtleStarParser
impl RefUnwindSafe for TurtleStarParser
impl Send for TurtleStarParser
impl Sync for TurtleStarParser
impl Unpin for TurtleStarParser
impl UnsafeUnpin for TurtleStarParser
impl UnwindSafe for TurtleStarParser
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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