#[non_exhaustive]pub enum StrEncoding {
Ascii,
Utf8,
Utf16,
Utf32,
Windows1252,
}Expand description
The encoding method used for strings and chars.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for StrEncoding
impl Clone for StrEncoding
Source§fn clone(&self) -> StrEncoding
fn clone(&self) -> StrEncoding
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 Debug for StrEncoding
impl Debug for StrEncoding
Source§impl Default for StrEncoding
impl Default for StrEncoding
Source§fn default() -> StrEncoding
fn default() -> StrEncoding
Returns the “default value” for a type. Read more
Source§impl Display for StrEncoding
impl Display for StrEncoding
Source§impl Hash for StrEncoding
impl Hash for StrEncoding
Source§impl PartialEq for StrEncoding
impl PartialEq for StrEncoding
impl Copy for StrEncoding
impl Eq for StrEncoding
impl StructuralPartialEq for StrEncoding
Auto Trait Implementations§
impl Freeze for StrEncoding
impl RefUnwindSafe for StrEncoding
impl Send for StrEncoding
impl Sync for StrEncoding
impl Unpin for StrEncoding
impl UnwindSafe for StrEncoding
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