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
sourceimpl PartiallyResolvedTriple
impl PartiallyResolvedTriple
sourcepub fn resolve_with(
&self,
node_map: &HashMap<String, u64>,
predicate_map: &HashMap<String, u64>,
value_map: &HashMap<String, u64>
) -> Option<IdTriple>
pub fn resolve_with(
&self,
node_map: &HashMap<String, u64>,
predicate_map: &HashMap<String, u64>,
value_map: &HashMap<String, 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
sourceimpl Clone for PartiallyResolvedTriple
impl Clone for PartiallyResolvedTriple
sourcefn clone(&self) -> PartiallyResolvedTriple
fn clone(&self) -> PartiallyResolvedTriple
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PartiallyResolvedTriple
impl Debug for PartiallyResolvedTriple
sourceimpl Hash for PartiallyResolvedTriple
impl Hash for PartiallyResolvedTriple
sourceimpl Ord for PartiallyResolvedTriple
impl Ord for PartiallyResolvedTriple
sourceimpl PartialEq<PartiallyResolvedTriple> for PartiallyResolvedTriple
impl PartialEq<PartiallyResolvedTriple> for PartiallyResolvedTriple
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &PartiallyResolvedTriple) -> bool
fn ne(&self, other: &PartiallyResolvedTriple) -> bool
This method tests for !=.
sourceimpl PartialOrd<PartiallyResolvedTriple> for PartiallyResolvedTriple
impl PartialOrd<PartiallyResolvedTriple> for PartiallyResolvedTriple
sourcefn partial_cmp(&self, other: &PartiallyResolvedTriple) -> Option<Ordering>
fn partial_cmp(&self, other: &PartiallyResolvedTriple) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more