pub enum ParserBackend {
Nom,
Auto,
Custom(String),
}Expand description
Parser backend selection
Variants§
Nom
Use nom parser (fast, streaming) — the only built-in backend.
Auto
Auto-select the best backend based on input characteristics.
Currently always resolves to ParserBackend::Nom, the single
built-in backend.
Custom(String)
Custom backend (for extensions)
Trait Implementations§
Source§impl Clone for ParserBackend
impl Clone for ParserBackend
Source§fn clone(&self) -> ParserBackend
fn clone(&self) -> ParserBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserBackend
impl Debug for ParserBackend
Source§impl<'de> Deserialize<'de> for ParserBackend
impl<'de> Deserialize<'de> for ParserBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParserBackend
impl PartialEq for ParserBackend
Source§impl Serialize for ParserBackend
impl Serialize for ParserBackend
impl StructuralPartialEq for ParserBackend
Auto Trait Implementations§
impl Freeze for ParserBackend
impl RefUnwindSafe for ParserBackend
impl Send for ParserBackend
impl Sync for ParserBackend
impl Unpin for ParserBackend
impl UnsafeUnpin for ParserBackend
impl UnwindSafe for ParserBackend
Blanket Implementations§
impl<T> Allocation for T
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