Trait rdftk_core::model::statement::SubjectNode[][src]

pub trait SubjectNode: Debug + Provided {
    fn as_blank(&self) -> Option<&String>;
fn as_iri(&self) -> Option<&IRIRef>;
fn as_statement(&self) -> Option<&StatementRef>; fn is_blank(&self) -> bool { ... }
fn is_iri(&self) -> bool { ... }
fn is_statement(&self) -> bool { ... } }

Required methods

Return a blank node string, if self.is_blank(), else None.

Return a named node IRI, if self.is_iri(), else None.

Return a statement reference, if self.is_statement(), else None.

Provided methods

Return true if this subject is a blank node, else false.

Return true if this subject is an IRI, else false.

Return true if this subject is an RDF-star statement, else false.

Trait Implementations

Formats the value using the given formatter. Read more

Returns true if other is equivalent to self, else false.

Returns true if other is not equivalent to self, else false.

Returns true if other is equivalent to self, else false.

Returns true if other is not equivalent to self, else false.

Returns true if other is equivalent to self, else false.

Returns true if other is not equivalent to self, else false.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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

This method tests for !=.

Implementors