Expand description
RDF triple.
Tuple Fields
0: S1: P2: OImplementations
sourceimpl Triple
impl Triple
pub fn into_grdf(self) -> GrdfTriple
pub fn as_grdf(&self) -> GrdfTripleRef<'_>
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<S1: PartialEq<S2>, P1: PartialEq<P2>, O1: PartialEq<O2>, S2, P2, O2> PartialEq<Triple<S2, P2, O2>> for Triple<S1, P1, O1>
impl<S1: PartialEq<S2>, P1: PartialEq<P2>, O1: PartialEq<O2>, S2, P2, O2> PartialEq<Triple<S2, P2, O2>> for Triple<S1, P1, O1>
sourceimpl<S1: PartialOrd<S2>, P1: PartialOrd<P2>, O1: PartialOrd<O2>, S2, P2, O2> PartialOrd<Triple<S2, P2, O2>> for Triple<S1, P1, O1>
impl<S1: PartialOrd<S2>, P1: PartialOrd<P2>, O1: PartialOrd<O2>, S2, P2, O2> PartialOrd<Triple<S2, P2, O2>> for Triple<S1, P1, O1>
sourcefn partial_cmp(&self, other: &Triple<S2, P2, O2>) -> Option<Ordering>
fn partial_cmp(&self, other: &Triple<S2, P2, O2>) -> 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>
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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more