pub enum InlineLiteral {
Integer(i64),
Decimal(i64),
Boolean(bool),
Float(f32),
}Expand description
An inline-typed literal decoded from a Quin field value’s tag bits (60-62). Allocation-free; the caller formats the lexical/datatype form it needs (N-Triples surface syntax, SPARQL-Results JSON/XML, etc.).
Variants§
Integer(i64)
xsd:integer (already 60-bit sign-extended to i64).
Decimal(i64)
xsd:decimal — fixed-point, the value is raw × 10⁻⁶ (raw sign-extended).
Boolean(bool)
xsd:boolean.
Float(f32)
xsd:float (decoded from the lower 32 bits as IEEE-754 f32).
Implementations§
Source§impl InlineLiteral
impl InlineLiteral
Sourcepub fn datatype_iri(&self) -> &'static str
pub fn datatype_iri(&self) -> &'static str
The XSD datatype IRI (without angle brackets) for this literal.
Trait Implementations§
Source§impl Clone for InlineLiteral
impl Clone for InlineLiteral
Source§fn clone(&self) -> InlineLiteral
fn clone(&self) -> InlineLiteral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InlineLiteral
impl Debug for InlineLiteral
Source§impl Display for InlineLiteral
impl Display for InlineLiteral
Source§impl PartialEq for InlineLiteral
impl PartialEq for InlineLiteral
Source§fn eq(&self, other: &InlineLiteral) -> bool
fn eq(&self, other: &InlineLiteral) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InlineLiteral
impl StructuralPartialEq for InlineLiteral
Auto Trait Implementations§
impl Freeze for InlineLiteral
impl RefUnwindSafe for InlineLiteral
impl Send for InlineLiteral
impl Sync for InlineLiteral
impl Unpin for InlineLiteral
impl UnsafeUnpin for InlineLiteral
impl UnwindSafe for InlineLiteral
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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