pub enum ControlCharStyle {
Replacement,
Codepoint,
}Expand description
Style for how control characters should be represented in a snippet.
This determines how functions like Snippet::with_utf8(),
Snippet::with_latin1(), etc. handle control characters.
The documentation of functions that takes a ControlCharStyle
describes in detail how control characters are represented.
Variants§
Trait Implementations§
Source§impl Clone for ControlCharStyle
impl Clone for ControlCharStyle
Source§fn clone(&self) -> ControlCharStyle
fn clone(&self) -> ControlCharStyle
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 ControlCharStyle
impl PartialEq for ControlCharStyle
impl Copy for ControlCharStyle
impl Eq for ControlCharStyle
impl StructuralPartialEq for ControlCharStyle
Auto Trait Implementations§
impl Freeze for ControlCharStyle
impl RefUnwindSafe for ControlCharStyle
impl Send for ControlCharStyle
impl Sync for ControlCharStyle
impl Unpin for ControlCharStyle
impl UnsafeUnpin for ControlCharStyle
impl UnwindSafe for ControlCharStyle
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