Expand description
RDF triple.
Tuple Fields
0: S1: P2: OImplementations
sourceimpl<S, P, O> Triple<S, P, O>
impl<S, P, O> Triple<S, P, O>
sourcepub fn subject(&self) -> &S
pub fn subject(&self) -> &S
Returns a reference to the subject of the triple, the first component.
sourcepub fn into_subject(self) -> S
pub fn into_subject(self) -> S
Turns the triple into its subject, the first component.
sourcepub fn predicate(&self) -> &P
pub fn predicate(&self) -> &P
Returns a reference to the predicate of the triple, the second component.
sourcepub fn into_predicate(self) -> P
pub fn into_predicate(self) -> P
Turns the triple into its predicate, the second component.
sourcepub fn object(&self) -> &O
pub fn object(&self) -> &O
Returns a reference to the object of the triple, the third component.
sourcepub fn into_object(self) -> O
pub fn into_object(self) -> O
Turns the triple into its object, the third component.
sourcepub fn into_parts(self) -> (S, P, O)
pub fn into_parts(self) -> (S, P, O)
Turns the triple into a tuple
Trait Implementations
sourceimpl<S: Ord, P: Ord, O: Ord> Ord for Triple<S, P, O>
impl<S: Ord, P: Ord, O: Ord> Ord for Triple<S, P, O>
sourceimpl<S: PartialOrd, P: PartialOrd, O: PartialOrd> PartialOrd<Triple<S, P, O>> for Triple<S, P, O>
impl<S: PartialOrd, P: PartialOrd, O: PartialOrd> PartialOrd<Triple<S, P, O>> for Triple<S, P, O>
sourcefn partial_cmp(&self, other: &Triple<S, P, O>) -> Option<Ordering>
fn partial_cmp(&self, other: &Triple<S, P, O>) -> 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<S: Copy, P: Copy, O: Copy> Copy for Triple<S, P, O>
impl<S: Eq, P: Eq, O: Eq> Eq for Triple<S, P, O>
impl<S, P, O> StructuralEq for Triple<S, P, O>
impl<S, P, O> StructuralPartialEq for Triple<S, P, O>
Auto Trait Implementations
impl<S, P, O> RefUnwindSafe for Triple<S, P, O> where
O: RefUnwindSafe,
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, P, O> Send for Triple<S, P, O> where
O: Send,
P: Send,
S: Send,
impl<S, P, O> Sync for Triple<S, P, O> where
O: Sync,
P: Sync,
S: Sync,
impl<S, P, O> Unpin for Triple<S, P, O> where
O: Unpin,
P: Unpin,
S: Unpin,
impl<S, P, O> UnwindSafe for Triple<S, P, O> where
O: UnwindSafe,
P: UnwindSafe,
S: UnwindSafe,
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
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