pub enum MapNs {
Literal(String),
CurrentNs,
Alias(String),
}Expand description
The namespace prefix of a namespaced map literal, after validation.
The JVM reader reads the prefix as an unqualified Symbol, so #:foo/bar,
#:1 and #:nil are read errors. Parsing into this type performs that
check once, and leaves (namespace, auto) combinations that cannot occur -
such as a bare #:{…} - unrepresentable.
Variants§
Literal(String)
#:ns{…} - the namespace is written out.
CurrentNs
#::{…} - the namespace the form is read in.
Alias(String)
#::alias{…} - a :require :as alias, resolved by the evaluator.
Implementations§
Trait Implementations§
impl Eq for MapNs
impl StructuralPartialEq for MapNs
Auto Trait Implementations§
impl Freeze for MapNs
impl RefUnwindSafe for MapNs
impl Send for MapNs
impl Sync for MapNs
impl Unpin for MapNs
impl UnsafeUnpin for MapNs
impl UnwindSafe for MapNs
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