[][src]Trait rome::graph::IRIPtr

pub trait IRIPtr<'g> {
    fn as_str(&self) -> &str;

    fn to_blank_node_or_iri<B>(&self) -> BlankNodeOrIRI<'g, B, Self>
    where
        Self: Clone,
        B: BlankNodePtr<'g>
, { ... }
fn to_resource<B, L>(&self) -> Resource<'g, B, Self, L>
    where
        Self: Clone,
        B: BlankNodePtr<'g>,
        L: LiteralPtr<'g>
, { ... } }

A trait for a pointers to IRI in graphs.

Like blank nodes and literals, IRIs are tied to the graph to which they belong.

Required Methods

Get a string representation of the IRI.

Provided Methods

Wrap the IRI in a BlankNodeOrIRI This is useful when using it as a subject in a triple.

Wrap the IRI in a Resource This is useful when using it as an object in a triple.

Trait Implementations

impl<'g> PartialEq for IRIPtr<'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> Eq for IRIPtr<'g>
[src]

impl<'g> PartialOrd for IRIPtr<'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> Ord for IRIPtr<'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

Implementations on Foreign Types

impl<'g> IRIPtr<'g> for &'g str
[src]

impl<'g> IRIPtr<'g> for String
[src]

Implementors