Enum yaml_rust2::yaml::YAMLDecodingTrap
source · 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
source§fn eq(&self, other: &YAMLDecodingTrap) -> bool
fn eq(&self, other: &YAMLDecodingTrap) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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