Struct terminus_store::layer::PartiallyResolvedTriple
source · pub struct PartiallyResolvedTriple {
pub subject: PossiblyResolved<String>,
pub predicate: PossiblyResolved<String>,
pub object: PossiblyResolved<ObjectType>,
}Expand description
A triple where the subject, predicate and object can all either be fully resolved to an id, or unresolved.
Fields§
§subject: PossiblyResolved<String>§predicate: PossiblyResolved<String>§object: PossiblyResolved<ObjectType>Implementations§
source§impl PartiallyResolvedTriple
impl PartiallyResolvedTriple
sourcepub fn resolve_with(
&self,
node_map: &HashMap<String, u64>,
predicate_map: &HashMap<String, u64>,
value_map: &HashMap<TypedDictEntry, u64>
) -> Option<IdTriple>
pub fn resolve_with(
&self,
node_map: &HashMap<String, u64>,
predicate_map: &HashMap<String, u64>,
value_map: &HashMap<TypedDictEntry, u64>
) -> Option<IdTriple>
Resolve the unresolved ids in this triple using the given hashmaps for nodes, predicates and values.
pub fn as_resolved(&self) -> Option<IdTriple>
pub fn make_resolved_or_zero(&mut self)
Trait Implementations§
source§impl Clone for PartiallyResolvedTriple
impl Clone for PartiallyResolvedTriple
source§fn clone(&self) -> PartiallyResolvedTriple
fn clone(&self) -> PartiallyResolvedTriple
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 PartiallyResolvedTriple
impl Debug for PartiallyResolvedTriple
source§impl Hash for PartiallyResolvedTriple
impl Hash for PartiallyResolvedTriple
source§impl Ord for PartiallyResolvedTriple
impl Ord for PartiallyResolvedTriple
source§fn cmp(&self, other: &PartiallyResolvedTriple) -> Ordering
fn cmp(&self, other: &PartiallyResolvedTriple) -> 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<PartiallyResolvedTriple> for PartiallyResolvedTriple
impl PartialEq<PartiallyResolvedTriple> for PartiallyResolvedTriple
source§fn eq(&self, other: &PartiallyResolvedTriple) -> bool
fn eq(&self, other: &PartiallyResolvedTriple) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<PartiallyResolvedTriple> for PartiallyResolvedTriple
impl PartialOrd<PartiallyResolvedTriple> for PartiallyResolvedTriple
source§fn partial_cmp(&self, other: &PartiallyResolvedTriple) -> Option<Ordering>
fn partial_cmp(&self, other: &PartiallyResolvedTriple) -> 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 PartiallyResolvedTriple
impl StructuralEq for PartiallyResolvedTriple
impl StructuralPartialEq for PartiallyResolvedTriple
Auto Trait Implementations§
impl RefUnwindSafe for PartiallyResolvedTriple
impl Send for PartiallyResolvedTriple
impl Sync for PartiallyResolvedTriple
impl Unpin for PartiallyResolvedTriple
impl UnwindSafe for PartiallyResolvedTriple
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.