pub enum YAMLDecodingTrap {
Ignore,
Strict,
Replace,
Call(YAMLDecodingTrapFn),
}
Expand description
The behavior YamlDecoder
must have when an decoding error occurs.
Variants§
Ignore
Ignore the offending bytes, remove them from the output.
Strict
Error out.
Replace
Replace them with the Unicode REPLACEMENT CHARACTER.
Call(YAMLDecodingTrapFn)
Call the user-supplied function upon decoding malformation.
Trait Implementations§
source§impl Clone for YAMLDecodingTrap
impl Clone for YAMLDecodingTrap
source§fn clone(&self) -> YAMLDecodingTrap
fn clone(&self) -> YAMLDecodingTrap
Returns a copy 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 PartialEq for YAMLDecodingTrap
impl PartialEq for YAMLDecodingTrap
impl Copy for YAMLDecodingTrap
impl Eq for YAMLDecodingTrap
impl StructuralPartialEq for YAMLDecodingTrap
Auto Trait Implementations§
impl Freeze for YAMLDecodingTrap
impl RefUnwindSafe for YAMLDecodingTrap
impl Send for YAMLDecodingTrap
impl Sync for YAMLDecodingTrap
impl Unpin for YAMLDecodingTrap
impl UnwindSafe for YAMLDecodingTrap
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)