pub struct Triple<S = Subject, P = IriBuf, O = Object>(pub S, pub P, pub O);
Expand description

RDF triple.

Tuple Fields

0: S1: P2: O

Implementations

Creates a new triple.

Returns a reference to the subject of the triple, the first component.

Turns the triple into its subject, the first component.

Returns a reference to the predicate of the triple, the second component.

Turns the triple into its predicate, the second component.

Returns a reference to the object of the triple, the third component.

Turns the triple into its object, the third component.

Turns the triple into a tuple

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.