pub enum MalformedAction {
Report,
Ignore,
Replace,
}Expand description
Policy used when input units do not form a valid character.
Variants§
Report
Return the decoding error to the caller.
Ignore
Skip the malformed input units and continue.
Replace
Emit the configured replacement character and continue.
Trait Implementations§
Source§impl Clone for MalformedAction
impl Clone for MalformedAction
Source§fn clone(&self) -> MalformedAction
fn clone(&self) -> MalformedAction
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 MalformedAction
impl Debug for MalformedAction
Source§impl Default for MalformedAction
impl Default for MalformedAction
Source§fn default() -> MalformedAction
fn default() -> MalformedAction
Returns the “default value” for a type. Read more
Source§impl Hash for MalformedAction
impl Hash for MalformedAction
Source§impl PartialEq for MalformedAction
impl PartialEq for MalformedAction
Source§fn eq(&self, other: &MalformedAction) -> bool
fn eq(&self, other: &MalformedAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MalformedAction
impl Eq for MalformedAction
impl StructuralPartialEq for MalformedAction
Auto Trait Implementations§
impl Freeze for MalformedAction
impl RefUnwindSafe for MalformedAction
impl Send for MalformedAction
impl Sync for MalformedAction
impl Unpin for MalformedAction
impl UnsafeUnpin for MalformedAction
impl UnwindSafe for MalformedAction
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