Struct edn_format::ParserOptions [−][src]
pub struct ParserOptions {
pub track_line_numbers: bool,
pub allow_extra_input: bool,
pub allow_namespaced_map_syntax: bool,
}Expand description
Options you can pass to the EDN parser.
Fields
track_line_numbers: boolWhether to return errors with the context of what forms the parser was parsing and the line numbers where the errors occurred.
This is currently done on a “best effort” basis and some errors, like those that arise parsing numbers, are currently not eligible for this tracking.
Defaults to false.
allow_extra_input: boolWhether or not to error if there exists non-whitespace content after a valid EDN form.
Defaults to false.
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
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
Mutably borrows from an owned value. Read more
