pub enum InvalidSeqStyle {
Replacement,
Hexadecimal,
}Expand description
Style for how invalid encoded sequences are represented.
This determines how functions like Snippet::with_utf8_bytes()
and Snippet::with_utf16_words() handle invalid sequences.
The documentation of functions that takes an InvalidSeqStyle
describes in detail how invalid sequences are represented.
Variants§
Trait Implementations§
Source§impl Clone for InvalidSeqStyle
impl Clone for InvalidSeqStyle
Source§fn clone(&self) -> InvalidSeqStyle
fn clone(&self) -> InvalidSeqStyle
Returns a duplicate 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 InvalidSeqStyle
impl PartialEq for InvalidSeqStyle
impl Copy for InvalidSeqStyle
impl Eq for InvalidSeqStyle
impl StructuralPartialEq for InvalidSeqStyle
Auto Trait Implementations§
impl Freeze for InvalidSeqStyle
impl RefUnwindSafe for InvalidSeqStyle
impl Send for InvalidSeqStyle
impl Sync for InvalidSeqStyle
impl Unpin for InvalidSeqStyle
impl UnsafeUnpin for InvalidSeqStyle
impl UnwindSafe for InvalidSeqStyle
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