Struct terminus_store::StringTriple
source · [−]pub struct StringTriple {
pub subject: String,
pub predicate: String,
pub object: ObjectType,
}
Expand description
A triple stored as strings.
Fields
subject: String
predicate: String
object: ObjectType
Implementations
sourceimpl StringTriple
impl StringTriple
sourcepub fn new_node(subject: &str, predicate: &str, object: &str) -> StringTriple
pub fn new_node(subject: &str, predicate: &str, object: &str) -> StringTriple
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: &str) -> StringTriple
pub fn new_value(subject: &str, predicate: &str, object: &str) -> StringTriple
Construct a triple with a 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
sourceimpl Clone for StringTriple
impl Clone for StringTriple
sourcefn clone(&self) -> StringTriple
fn clone(&self) -> StringTriple
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 StringTriple
impl Debug for StringTriple
sourceimpl Hash for StringTriple
impl Hash for StringTriple
sourceimpl Ord for StringTriple
impl Ord for StringTriple
sourceimpl PartialEq<StringTriple> for StringTriple
impl PartialEq<StringTriple> for StringTriple
sourcefn eq(&self, other: &StringTriple) -> bool
fn eq(&self, other: &StringTriple) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StringTriple) -> bool
fn ne(&self, other: &StringTriple) -> bool
This method tests for !=
.
sourceimpl PartialOrd<StringTriple> for StringTriple
impl PartialOrd<StringTriple> for StringTriple
sourcefn partial_cmp(&self, other: &StringTriple) -> Option<Ordering>
fn partial_cmp(&self, other: &StringTriple) -> 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 StringTriple
impl StructuralEq for StringTriple
impl StructuralPartialEq for StringTriple
Auto Trait Implementations
impl RefUnwindSafe for StringTriple
impl Send for StringTriple
impl Sync for StringTriple
impl Unpin for StringTriple
impl UnwindSafe for StringTriple
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more