#[repr(u8)]pub enum HeaderEnum {
Version = 56,
Separator = 58,
Compress = 67,
}Expand description
WXF framing header bytes. No Display — header bytes overlap with some expression token bytes and are not used in error messages.
Variants§
Trait Implementations§
Source§impl Clone for HeaderEnum
impl Clone for HeaderEnum
Source§fn clone(&self) -> HeaderEnum
fn clone(&self) -> HeaderEnum
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeaderEnum
Source§impl Debug for HeaderEnum
impl Debug for HeaderEnum
impl Eq for HeaderEnum
Source§impl PartialEq for HeaderEnum
impl PartialEq for HeaderEnum
Source§fn eq(&self, other: &HeaderEnum) -> bool
fn eq(&self, other: &HeaderEnum) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeaderEnum
Source§impl TryFrom<u8> for HeaderEnum
impl TryFrom<u8> for HeaderEnum
Source§type Error = TryFromPrimitiveError<HeaderEnum>
type Error = TryFromPrimitiveError<HeaderEnum>
The type returned in the event of a conversion error.
Source§fn try_from(number: u8) -> Result<HeaderEnum, TryFromPrimitiveError<HeaderEnum>>
fn try_from(number: u8) -> Result<HeaderEnum, TryFromPrimitiveError<HeaderEnum>>
Performs the conversion.
Source§impl TryFromPrimitive for HeaderEnum
impl TryFromPrimitive for HeaderEnum
const NAME: &'static str = "HeaderEnum"
type Primitive = u8
type Error = TryFromPrimitiveError<HeaderEnum>
fn try_from_primitive( number: <HeaderEnum as TryFromPrimitive>::Primitive, ) -> Result<HeaderEnum, TryFromPrimitiveError<HeaderEnum>>
Auto Trait Implementations§
impl Freeze for HeaderEnum
impl RefUnwindSafe for HeaderEnum
impl Send for HeaderEnum
impl Sync for HeaderEnum
impl Unpin for HeaderEnum
impl UnsafeUnpin for HeaderEnum
impl UnwindSafe for HeaderEnum
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