Enum ruby_prism_sys::pm_pack_result
source · #[non_exhaustive]#[repr(u32)]pub enum pm_pack_result {
PM_PACK_OK = 0,
PM_PACK_ERROR_UNSUPPORTED_DIRECTIVE = 1,
PM_PACK_ERROR_UNKNOWN_DIRECTIVE = 2,
PM_PACK_ERROR_LENGTH_TOO_BIG = 3,
PM_PACK_ERROR_BANG_NOT_ALLOWED = 4,
PM_PACK_ERROR_DOUBLE_ENDIAN = 5,
}Expand description
The result of parsing a pack template.
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_OK = 0
PM_PACK_ERROR_UNSUPPORTED_DIRECTIVE = 1
PM_PACK_ERROR_UNKNOWN_DIRECTIVE = 2
PM_PACK_ERROR_LENGTH_TOO_BIG = 3
PM_PACK_ERROR_BANG_NOT_ALLOWED = 4
PM_PACK_ERROR_DOUBLE_ENDIAN = 5
Trait Implementations§
source§impl Clone for pm_pack_result
impl Clone for pm_pack_result
source§fn clone(&self) -> pm_pack_result
fn clone(&self) -> pm_pack_result
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_result
impl Debug for pm_pack_result
source§impl Hash for pm_pack_result
impl Hash for pm_pack_result
source§impl PartialEq for pm_pack_result
impl PartialEq for pm_pack_result
source§fn eq(&self, other: &pm_pack_result) -> bool
fn eq(&self, other: &pm_pack_result) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for pm_pack_result
impl Eq for pm_pack_result
impl StructuralEq for pm_pack_result
impl StructuralPartialEq for pm_pack_result
Auto Trait Implementations§
impl RefUnwindSafe for pm_pack_result
impl Send for pm_pack_result
impl Sync for pm_pack_result
impl Unpin for pm_pack_result
impl UnwindSafe for pm_pack_result
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