Enum ruby_prism_sys::pm_pack_encoding
source · #[non_exhaustive]#[repr(u32)]pub enum pm_pack_encoding {
PM_PACK_ENCODING_START = 0,
PM_PACK_ENCODING_ASCII_8BIT = 1,
PM_PACK_ENCODING_US_ASCII = 2,
PM_PACK_ENCODING_UTF_8 = 3,
}Expand description
The type of encoding for a pack template string.
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.
PM_PACK_ENCODING_START = 0
PM_PACK_ENCODING_ASCII_8BIT = 1
PM_PACK_ENCODING_US_ASCII = 2
PM_PACK_ENCODING_UTF_8 = 3
Trait Implementations§
source§impl Clone for pm_pack_encoding
impl Clone for pm_pack_encoding
source§fn clone(&self) -> pm_pack_encoding
fn clone(&self) -> pm_pack_encoding
Returns a copy 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 pm_pack_encoding
impl Debug for pm_pack_encoding
source§impl Hash for pm_pack_encoding
impl Hash for pm_pack_encoding
source§impl PartialEq for pm_pack_encoding
impl PartialEq for pm_pack_encoding
source§fn eq(&self, other: &pm_pack_encoding) -> bool
fn eq(&self, other: &pm_pack_encoding) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for pm_pack_encoding
impl Eq for pm_pack_encoding
impl StructuralPartialEq for pm_pack_encoding
Auto Trait Implementations§
impl RefUnwindSafe for pm_pack_encoding
impl Send for pm_pack_encoding
impl Sync for pm_pack_encoding
impl Unpin for pm_pack_encoding
impl UnwindSafe for pm_pack_encoding
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