[][src]Struct terminus_store::layer::PartiallyResolvedTriple

pub struct PartiallyResolvedTriple {
    pub subject: PossiblyResolved<String>,
    pub predicate: PossiblyResolved<String>,
    pub object: PossiblyResolved<ObjectType>,
}

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

impl PartiallyResolvedTriple[src]

pub fn resolve_with(
    &self,
    node_map: &HashMap<String, u64>,
    predicate_map: &HashMap<String, u64>,
    value_map: &HashMap<String, u64>
) -> Option<IdTriple>
[src]

Resolve the unresolved ids in this triple using the given hashmaps for nodes, predicates and values.

Trait Implementations

impl Clone for PartiallyResolvedTriple[src]

impl Debug for PartiallyResolvedTriple[src]

impl Eq for PartiallyResolvedTriple[src]

impl Hash for PartiallyResolvedTriple[src]

impl Ord for PartiallyResolvedTriple[src]

impl PartialEq<PartiallyResolvedTriple> for PartiallyResolvedTriple[src]

impl PartialOrd<PartiallyResolvedTriple> for PartiallyResolvedTriple[src]

impl StructuralEq for PartiallyResolvedTriple[src]

impl StructuralPartialEq for PartiallyResolvedTriple[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,