#[non_exhaustive]#[repr(u8)]pub enum AttributeCode {
EntryOld = 1,
Entry = 2,
GroupEntry = 3,
}Expand description
PARAMATTR blocks have code for defining a parameter attribute set.
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.
EntryOld = 1
Obsolete.
ENTRY_OLD
[paramidx0, attr0, paramidx1, attr1…]
Entry = 2
ENTRY
[attrgrp0, attrgrp1, …]
GroupEntry = 3
GRP_CODE_ENTRY
[grpid, idx, attr0, attr1, …]
Trait Implementations§
Source§impl Clone for AttributeCode
impl Clone for AttributeCode
Source§fn clone(&self) -> AttributeCode
fn clone(&self) -> AttributeCode
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 AttributeCode
impl Debug for AttributeCode
Source§impl TryFrom<u8> for AttributeCode
impl TryFrom<u8> for AttributeCode
Source§type Error = TryFromPrimitiveError<AttributeCode>
type Error = TryFromPrimitiveError<AttributeCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for AttributeCode
impl TryFromPrimitive for AttributeCode
const NAME: &'static str = "AttributeCode"
type Primitive = u8
type Error = TryFromPrimitiveError<AttributeCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for AttributeCode
Auto Trait Implementations§
impl Freeze for AttributeCode
impl RefUnwindSafe for AttributeCode
impl Send for AttributeCode
impl Sync for AttributeCode
impl Unpin for AttributeCode
impl UnwindSafe for AttributeCode
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