[][src]Enum rome::graph::Resource

pub enum Resource<'g, B: 'g, I: 'g, L: 'g> where
    B: BlankNodePtr<'g>,
    I: IRIPtr<'g>,
    L: LiteralPtr<'g>, 
{ BlankNode(B, PhantomData<&'g u8>), IRI(I), Literal(L), }

A Resource is a blank node, an IRI or a literal.

Resources are used in the object position of a triple.

Variants

This is a blank node.

This is an IRI.

This is a literal.

Methods

impl<'g, B, I, L> Resource<'g, B, I, L> where
    B: BlankNodePtr<'g>,
    I: IRIPtr<'g>,
    L: LiteralPtr<'g>, 
[src]

Is this a blank node?

Is this an IRI?

Is this a literal?

Cast Resource to a blank node, if applicable

Cast Resource to an IRI, if applicable

Cast Resource to a literal, if applicable

Cast Resource to a BlankNodeOrIRI, if applicable

Trait Implementations

impl<'g, B: PartialEq + 'g, I: PartialEq + 'g, L: PartialEq + 'g> PartialEq for Resource<'g, B, I, L> where
    B: BlankNodePtr<'g>,
    I: IRIPtr<'g>,
    L: LiteralPtr<'g>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'g, B: Eq + 'g, I: Eq + 'g, L: Eq + 'g> Eq for Resource<'g, B, I, L> where
    B: BlankNodePtr<'g>,
    I: IRIPtr<'g>,
    L: LiteralPtr<'g>, 
[src]

impl<'g, B: PartialOrd + 'g, I: PartialOrd + 'g, L: PartialOrd + 'g> PartialOrd for Resource<'g, B, I, L> where
    B: BlankNodePtr<'g>,
    I: IRIPtr<'g>,
    L: LiteralPtr<'g>, 
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'g, B: Ord + 'g, I: Ord + 'g, L: Ord + 'g> Ord for Resource<'g, B, I, L> where
    B: BlankNodePtr<'g>,
    I: IRIPtr<'g>,
    L: LiteralPtr<'g>, 
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<'g, B: Clone + 'g, I: Clone + 'g, L: Clone + 'g> Clone for Resource<'g, B, I, L> where
    B: BlankNodePtr<'g>,
    I: IRIPtr<'g>,
    L: LiteralPtr<'g>, 
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'g, B: Debug + 'g, I: Debug + 'g, L: Debug + 'g> Debug for Resource<'g, B, I, L> where
    B: BlankNodePtr<'g>,
    I: IRIPtr<'g>,
    L: LiteralPtr<'g>, 
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'g, B, I, L> Send for Resource<'g, B, I, L> where
    B: Send,
    I: Send,
    L: Send

impl<'g, B, I, L> Sync for Resource<'g, B, I, L> where
    B: Sync,
    I: Sync,
    L: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more