pub enum AnnotationKind {
Priority,
Summary,
Tag,
}Expand description
Annotation kind for ANNOTATION blocks.
Determines how the annotation’s value field should be interpreted.
┌──────┬──────────┐
│ Wire │ Kind │
├──────┼──────────┤
│ 0x01 │ Priority │
│ 0x02 │ Summary │
│ 0x03 │ Tag │
└──────┴──────────┘Variants§
Implementations§
Source§impl AnnotationKind
impl AnnotationKind
Sourcepub fn to_wire_byte(self) -> u8
pub fn to_wire_byte(self) -> u8
Encode this variant as a single wire byte.
Sourcepub fn from_wire_byte(value: u8) -> Result<Self, TypeError>
pub fn from_wire_byte(value: u8) -> Result<Self, TypeError>
Decode a wire byte into this enum.
Returns Err(TypeError::InvalidEnumValue) if the byte
doesn’t match any known variant.
Trait Implementations§
Source§impl Clone for AnnotationKind
impl Clone for AnnotationKind
Source§fn clone(&self) -> AnnotationKind
fn clone(&self) -> AnnotationKind
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 AnnotationKind
impl Debug for AnnotationKind
Source§impl PartialEq for AnnotationKind
impl PartialEq for AnnotationKind
impl Copy for AnnotationKind
impl Eq for AnnotationKind
impl StructuralPartialEq for AnnotationKind
Auto Trait Implementations§
impl Freeze for AnnotationKind
impl RefUnwindSafe for AnnotationKind
impl Send for AnnotationKind
impl Sync for AnnotationKind
impl Unpin for AnnotationKind
impl UnsafeUnpin for AnnotationKind
impl UnwindSafe for AnnotationKind
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