pub struct Keyword {
pub namespace: Option<Arc<str>>,
pub name: Arc<str>,
}Expand description
An interned Clojure keyword, optionally namespace-qualified.
:foo → Keyword { namespace: None, name: "foo" }
:clojure.core/map → Keyword { namespace: Some("clojure.core"), name: "map" }
Keywords are value types: two keywords with the same namespace and name are always equal.
Fields§
§namespace: Option<Arc<str>>§name: Arc<str>Implementations§
Trait Implementations§
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 UnsafeUnpin 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