[−][src]Trait rome::graph::IRIPtr
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
Provided Methods
fn to_blank_node_or_iri<B>(&self) -> BlankNodeOrIRI<'g, B, Self> where
Self: Clone,
B: BlankNodePtr<'g>,
Self: Clone,
B: BlankNodePtr<'g>,
Wrap the IRI in a BlankNodeOrIRI This is useful when using it as a subject in a triple.
fn to_resource<B, L>(&self) -> Resource<'g, B, Self, L> where
Self: Clone,
B: BlankNodePtr<'g>,
L: LiteralPtr<'g>,
Self: Clone,
B: BlankNodePtr<'g>,
L: LiteralPtr<'g>,
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]
impl<'g> PartialEq for IRIPtr<'g>
fn eq(&self, other: &IRIPtr<'g>) -> bool
[src]
fn eq(&self, other: &IRIPtr<'g>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'g> Eq for IRIPtr<'g>
[src]
impl<'g> Eq for IRIPtr<'g>
impl<'g> PartialOrd for IRIPtr<'g>
[src]
impl<'g> PartialOrd for IRIPtr<'g>
fn partial_cmp(&self, other: &IRIPtr<'g>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &IRIPtr<'g>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
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]
impl<'g> Ord for IRIPtr<'g>
fn cmp(&self, other: &IRIPtr<'g>) -> Ordering
[src]
fn cmp(&self, other: &IRIPtr<'g>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
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 &'g str
fn as_str(&self) -> &str
[src]
fn as_str(&self) -> &str
fn to_blank_node_or_iri<B>(&self) -> BlankNodeOrIRI<'g, B, Self> where
Self: Clone,
B: BlankNodePtr<'g>,
[src]
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>,
[src]
fn to_resource<B, L>(&self) -> Resource<'g, B, Self, L> where
Self: Clone,
B: BlankNodePtr<'g>,
L: LiteralPtr<'g>,
impl<'g> IRIPtr<'g> for String
[src]
impl<'g> IRIPtr<'g> for String
fn as_str(&self) -> &str
[src]
fn as_str(&self) -> &str
fn to_blank_node_or_iri<B>(&self) -> BlankNodeOrIRI<'g, B, Self> where
Self: Clone,
B: BlankNodePtr<'g>,
[src]
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>,
[src]
fn to_resource<B, L>(&self) -> Resource<'g, B, Self, L> where
Self: Clone,
B: BlankNodePtr<'g>,
L: LiteralPtr<'g>,