Struct pretty_rdf::PTriple
source · pub struct PTriple<A: AsRef<str>> {
pub subject: PSubject<A>,
pub predicate: PNamedNode<A>,
pub object: PTerm<A>,
}
Fields§
§subject: PSubject<A>
§predicate: PNamedNode<A>
§object: PTerm<A>
Implementations§
source§impl<A: AsRef<str>> PTriple<A>
impl<A: AsRef<str>> PTriple<A>
pub fn new( subject: PSubject<A>, predicate: PNamedNode<A>, object: PTerm<A> ) -> PTriple<A>
pub fn is_type(&self) -> bool
pub fn is_collection(&self) -> bool
pub fn is_collection_first(&self) -> bool
pub fn is_collection_rest(&self) -> bool
pub fn is_collection_end(&self) -> bool
pub fn printable(&self) -> String
Trait Implementations§
source§impl<A> From<PTriple<A>> for PExpandedTriple<A>
impl<A> From<PTriple<A>> for PExpandedTriple<A>
source§impl<A> From<PTriple<A>> for PMultiTriple<A>
impl<A> From<PTriple<A>> for PMultiTriple<A>
source§impl<A: PartialEq + AsRef<str>> PartialEq for PTriple<A>
impl<A: PartialEq + AsRef<str>> PartialEq for PTriple<A>
impl<A: Eq + AsRef<str>> Eq for PTriple<A>
impl<A: AsRef<str>> StructuralPartialEq for PTriple<A>
Auto Trait Implementations§
impl<A> !Freeze for PTriple<A>
impl<A> !RefUnwindSafe for PTriple<A>
impl<A> Send for PTriple<A>where
A: Send,
impl<A> !Sync for PTriple<A>
impl<A> Unpin for PTriple<A>where
A: Unpin,
impl<A> UnwindSafe for PTriple<A>where
A: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.