Enum pretty_rdf::PLiteral
source · pub enum PLiteral<A: AsRef<str>> {
Simple {
value: A,
},
LanguageTaggedString {
value: A,
language: A,
},
Typed {
value: A,
datatype: PNamedNode<A>,
},
}
Variants§
Trait Implementations§
source§impl<A: PartialEq + AsRef<str>> PartialEq for PLiteral<A>
impl<A: PartialEq + AsRef<str>> PartialEq for PLiteral<A>
impl<A: Eq + AsRef<str>> Eq for PLiteral<A>
impl<A: AsRef<str>> StructuralPartialEq for PLiteral<A>
Auto Trait Implementations§
impl<A> !Freeze for PLiteral<A>
impl<A> !RefUnwindSafe for PLiteral<A>
impl<A> Send for PLiteral<A>where
A: Send,
impl<A> !Sync for PLiteral<A>
impl<A> Unpin for PLiteral<A>where
A: Unpin,
impl<A> UnwindSafe for PLiteral<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.