Struct edn_format::ParserOptions
source · [−]pub struct ParserOptions {
pub allow_namespaced_map_syntax: bool,
}Expand description
Options you can pass to the EDN parser.
Fields
allow_namespaced_map_syntax: boolWhether to allow the #some.ns{:key “val”} syntax that was introduced in clojure 1.9 but not reflected in the EDN spec.
Defaults to true.
Trait Implementations
sourceimpl Clone for ParserOptions
impl Clone for ParserOptions
sourcefn clone(&self) -> ParserOptions
fn clone(&self) -> ParserOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ParserOptions
impl Debug for ParserOptions
sourceimpl Default for ParserOptions
impl Default for ParserOptions
impl Copy for ParserOptions
Auto Trait Implementations
impl RefUnwindSafe for ParserOptions
impl Send for ParserOptions
impl Sync for ParserOptions
impl Unpin for ParserOptions
impl UnwindSafe for ParserOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more