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