#[non_exhaustive]#[repr(u8)]pub enum SectionTag {
EntityCreate = 1,
EntityDestroy = 2,
EntityUpdate = 3,
}Expand description
Section tags for version 0.
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.
Implementations§
Source§impl SectionTag
impl SectionTag
Sourcepub fn parse(tag: u8) -> Result<Self, DecodeError>
pub fn parse(tag: u8) -> Result<Self, DecodeError>
Parses a section tag from a raw byte.
Trait Implementations§
Source§impl Clone for SectionTag
impl Clone for SectionTag
Source§fn clone(&self) -> SectionTag
fn clone(&self) -> SectionTag
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 SectionTag
impl Debug for SectionTag
Source§impl PartialEq for SectionTag
impl PartialEq for SectionTag
impl Copy for SectionTag
impl Eq for SectionTag
impl StructuralPartialEq for SectionTag
Auto Trait Implementations§
impl Freeze for SectionTag
impl RefUnwindSafe for SectionTag
impl Send for SectionTag
impl Sync for SectionTag
impl Unpin for SectionTag
impl UnwindSafe for SectionTag
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