pub struct Keyword { /* private fields */ }Expand description
A keyword, as described in EDN data model, is identifier which should “designate itself”.
Implementations§
Source§impl Keyword
impl Keyword
Sourcepub fn from_name(name: &str) -> Keyword
pub fn from_name(name: &str) -> Keyword
Construct a keyword from a name.
There are no safeguards in place for ensuring that the name given would be valid EDN.
Sourcepub fn from_namespace_and_name(namespace: &str, name: &str) -> Keyword
pub fn from_namespace_and_name(namespace: &str, name: &str) -> Keyword
Construct a keyword from a namespace and a name.
There are no safeguards in place for ensuring that either the namespace or the name given would be valid EDN.
Trait Implementations§
Source§impl Display for Keyword
If the namespace and name of the symbol follow the proper rules, displaying
a keyword should give valid EDN.
impl Display for Keyword
If the namespace and name of the symbol follow the proper rules, displaying a keyword should give valid EDN.
Source§impl Ord for Keyword
impl Ord for Keyword
Source§impl PartialOrd for Keyword
impl PartialOrd for Keyword
impl Eq for Keyword
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl Freeze for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnwindSafe for Keyword
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more