pub enum CodingErrorPolicy {
Strict,
Replace,
}Expand description
Controls how text adapters handle malformed or unencodable data.
Variants§
Strict
Reject malformed input bytes or unencodable Unicode text.
Replace
Replace malformed input bytes or unencodable Unicode text.
Trait Implementations§
Source§impl Clone for CodingErrorPolicy
impl Clone for CodingErrorPolicy
Source§fn clone(&self) -> CodingErrorPolicy
fn clone(&self) -> CodingErrorPolicy
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 CodingErrorPolicy
impl Debug for CodingErrorPolicy
Source§impl Default for CodingErrorPolicy
impl Default for CodingErrorPolicy
Source§fn default() -> CodingErrorPolicy
fn default() -> CodingErrorPolicy
Returns the “default value” for a type. Read more
Source§impl Hash for CodingErrorPolicy
impl Hash for CodingErrorPolicy
Source§impl PartialEq for CodingErrorPolicy
impl PartialEq for CodingErrorPolicy
Source§fn eq(&self, other: &CodingErrorPolicy) -> bool
fn eq(&self, other: &CodingErrorPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CodingErrorPolicy
impl Eq for CodingErrorPolicy
impl StructuralPartialEq for CodingErrorPolicy
Auto Trait Implementations§
impl Freeze for CodingErrorPolicy
impl RefUnwindSafe for CodingErrorPolicy
impl Send for CodingErrorPolicy
impl Sync for CodingErrorPolicy
impl Unpin for CodingErrorPolicy
impl UnsafeUnpin for CodingErrorPolicy
impl UnwindSafe for CodingErrorPolicy
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