Enum pretty_rdf::PTerm
source · pub enum PTerm<A: AsRef<str>> {
NamedNode(PNamedNode<A>),
BlankNode(PBlankNode<A>),
Literal(PLiteral<A>),
}
Variants§
Trait Implementations§
source§impl<A: AsRef<str>> From<PBlankNode<A>> for PTerm<A>
impl<A: AsRef<str>> From<PBlankNode<A>> for PTerm<A>
source§fn from(nn: PBlankNode<A>) -> Self
fn from(nn: PBlankNode<A>) -> Self
Converts to this type from the input type.
source§impl<A: AsRef<str>> From<PNamedNode<A>> for PTerm<A>
impl<A: AsRef<str>> From<PNamedNode<A>> for PTerm<A>
source§fn from(nn: PNamedNode<A>) -> Self
fn from(nn: PNamedNode<A>) -> Self
Converts to this type from the input type.
source§impl<A: AsRef<str>> PartialEq<PSubject<A>> for PTerm<A>
impl<A: AsRef<str>> PartialEq<PSubject<A>> for PTerm<A>
source§impl<A: PartialEq + AsRef<str>> PartialEq for PTerm<A>
impl<A: PartialEq + AsRef<str>> PartialEq for PTerm<A>
impl<A: Eq + AsRef<str>> Eq for PTerm<A>
impl<A: AsRef<str>> StructuralPartialEq for PTerm<A>
Auto Trait Implementations§
impl<A> !Freeze for PTerm<A>
impl<A> !RefUnwindSafe for PTerm<A>
impl<A> Send for PTerm<A>where
A: Send,
impl<A> !Sync for PTerm<A>
impl<A> Unpin for PTerm<A>where
A: Unpin,
impl<A> UnwindSafe for PTerm<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.