Struct terminus_store::ValueTriple
source · pub struct ValueTriple {
pub subject: String,
pub predicate: String,
pub object: ObjectType,
}Expand description
A triple stored as strings.
Fields§
§subject: String§predicate: String§object: ObjectTypeImplementations§
source§impl ValueTriple
impl ValueTriple
sourcepub fn new_node(subject: &str, predicate: &str, object: &str) -> ValueTriple
pub fn new_node(subject: &str, predicate: &str, object: &str) -> ValueTriple
Construct a triple with a node object.
Nodes may appear in both the subject and object position.
sourcepub fn new_value(
subject: &str,
predicate: &str,
object: TypedDictEntry
) -> ValueTriple
pub fn new_value(
subject: &str,
predicate: &str,
object: TypedDictEntry
) -> ValueTriple
Construct a triple with a value object.
Values may only appear in the object position.
sourcepub fn new_string_value(
subject: &str,
predicate: &str,
object: &str
) -> ValueTriple
pub fn new_string_value(
subject: &str,
predicate: &str,
object: &str
) -> ValueTriple
Construct a triple with a string value object.
Values may only appear in the object position.
sourcepub fn to_unresolved(self) -> PartiallyResolvedTriple
pub fn to_unresolved(self) -> PartiallyResolvedTriple
Convert this triple to a PartiallyResolvedTriple, marking each field as unresolved.
Trait Implementations§
source§impl Clone for ValueTriple
impl Clone for ValueTriple
source§fn clone(&self) -> ValueTriple
fn clone(&self) -> ValueTriple
Returns a copy of the value. Read more
1.0.0 · 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 ValueTriple
impl Debug for ValueTriple
source§impl Hash for ValueTriple
impl Hash for ValueTriple
source§impl Ord for ValueTriple
impl Ord for ValueTriple
source§fn cmp(&self, other: &ValueTriple) -> Ordering
fn cmp(&self, other: &ValueTriple) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ValueTriple> for ValueTriple
impl PartialEq<ValueTriple> for ValueTriple
source§fn eq(&self, other: &ValueTriple) -> bool
fn eq(&self, other: &ValueTriple) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ValueTriple> for ValueTriple
impl PartialOrd<ValueTriple> for ValueTriple
source§fn partial_cmp(&self, other: &ValueTriple) -> Option<Ordering>
fn partial_cmp(&self, other: &ValueTriple) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for ValueTriple
impl StructuralEq for ValueTriple
impl StructuralPartialEq for ValueTriple
Auto Trait Implementations§
impl RefUnwindSafe for ValueTriple
impl Send for ValueTriple
impl Sync for ValueTriple
impl Unpin for ValueTriple
impl UnwindSafe for ValueTriple
Blanket Implementations§
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.