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
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