Enum pretty_rdf::PSubject
source · pub enum PSubject<A: AsRef<str>> {
NamedNode(PNamedNode<A>),
BlankNode(PBlankNode<A>),
}
Variants§
NamedNode(PNamedNode<A>)
BlankNode(PBlankNode<A>)
Trait Implementations§
source§impl<A: AsRef<str>> From<PBlankNode<A>> for PSubject<A>
impl<A: AsRef<str>> From<PBlankNode<A>> for PSubject<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 PSubject<A>
impl<A: AsRef<str>> From<PNamedNode<A>> for PSubject<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: Ord + AsRef<str>> Ord for PSubject<A>
impl<A: Ord + AsRef<str>> Ord for PSubject<A>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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 PSubject<A>
impl<A: PartialEq + AsRef<str>> PartialEq for PSubject<A>
source§impl<A: PartialOrd + AsRef<str>> PartialOrd for PSubject<A>
impl<A: PartialOrd + AsRef<str>> PartialOrd for PSubject<A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl<A: Eq + AsRef<str>> Eq for PSubject<A>
impl<A: AsRef<str>> StructuralPartialEq for PSubject<A>
Auto Trait Implementations§
impl<A> !Freeze for PSubject<A>
impl<A> !RefUnwindSafe for PSubject<A>
impl<A> Send for PSubject<A>where
A: Send,
impl<A> !Sync for PSubject<A>
impl<A> Unpin for PSubject<A>where
A: Unpin,
impl<A> UnwindSafe for PSubject<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.