pub struct Quad<S = Subject, P = IriRefBuf, O = Object, G = GraphLabel>(pub S, pub P, pub O, pub Option<G>);Expand description
RDF quad.
Tuple Fields
0: S1: P2: O3: Option<G>Implementations
sourceimpl<S, P, O, G> Quad<S, P, O, G>
impl<S, P, O, G> Quad<S, P, O, G>
sourcepub fn subject(&self) -> &S
pub fn subject(&self) -> &S
Returns a reference to the subject of the quad, the first component.
sourcepub fn into_subject(self) -> S
pub fn into_subject(self) -> S
Turns the quad into its subject, the first component.
sourcepub fn predicate(&self) -> &P
pub fn predicate(&self) -> &P
Returns a reference to the predicate of the quad, the second component.
sourcepub fn into_predicate(self) -> P
pub fn into_predicate(self) -> P
Turns the quad into its predicate, the second component.
sourcepub fn into_object(self) -> O
pub fn into_object(self) -> O
Turns the quad into its object, the third component.
sourcepub fn graph(&self) -> Option<&G>
pub fn graph(&self) -> Option<&G>
Returns a reference to the graph of the quad, the fourth component.
sourcepub fn into_graph(self) -> Option<G>
pub fn into_graph(self) -> Option<G>
Turns the quad into its graph, the fourth component.
pub fn into_parts(self) -> (S, P, O, Option<G>)
Trait Implementations
Auto Trait Implementations
impl<S, P, O, G> RefUnwindSafe for Quad<S, P, O, G> where
G: RefUnwindSafe,
O: RefUnwindSafe,
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, P, O, G> Send for Quad<S, P, O, G> where
G: Send,
O: Send,
P: Send,
S: Send,
impl<S, P, O, G> Sync for Quad<S, P, O, G> where
G: Sync,
O: Sync,
P: Sync,
S: Sync,
impl<S, P, O, G> Unpin for Quad<S, P, O, G> where
G: Unpin,
O: Unpin,
P: Unpin,
S: Unpin,
impl<S, P, O, G> UnwindSafe for Quad<S, P, O, G> where
G: UnwindSafe,
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