pub enum RecoverStrategy {
Decode,
Skip,
Abort,
}Expand description
Determines which strategy should be used if an encoded word isn’t encoded as described in the RFC.
Variants§
Decode
Decode the encoded word although it’s incorrectly encoded.
§Example
Take a look to Decoder#RecoveryStrategy::Decode.
Skip
Abort
Abort the string-parsing and return an error.
§Example
Take a look to Decoder#RecoveryStrategy::Abort.
Trait Implementations§
Source§impl Clone for RecoverStrategy
impl Clone for RecoverStrategy
Source§fn clone(&self) -> RecoverStrategy
fn clone(&self) -> RecoverStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 RecoverStrategy
impl Debug for RecoverStrategy
Source§impl Hash for RecoverStrategy
impl Hash for RecoverStrategy
Source§impl PartialEq for RecoverStrategy
impl PartialEq for RecoverStrategy
impl Copy for RecoverStrategy
impl Eq for RecoverStrategy
impl StructuralPartialEq for RecoverStrategy
Auto Trait Implementations§
impl Freeze for RecoverStrategy
impl RefUnwindSafe for RecoverStrategy
impl Send for RecoverStrategy
impl Sync for RecoverStrategy
impl Unpin for RecoverStrategy
impl UnwindSafe for RecoverStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.