pub enum Parser {
ListByComma,
ListByColon,
ListByOsPathSeparator,
SetByComma,
}Expand description
A named way of splitting one string into several values.
Spec vocabulary rather than a Rust callback, so a spec that says parse="list_by_comma"
means the same thing to a Go or a TypeScript runtime reading the same file. A parser a
tool has written itself rides as an x extension and never reaches here.
Variants§
ListByComma
ListByColon
ListByOsPathSeparator
: or ;, whichever this platform uses between path entries.
SetByComma
Splits on commas and drops repeats, keeping the first of each.
Implementations§
Trait Implementations§
impl Copy for Parser
impl StructuralPartialEq for Parser
Auto Trait Implementations§
impl Freeze for Parser
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnsafeUnpin for Parser
impl UnwindSafe for Parser
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