#[non_exhaustive]pub struct CommentHeader {
pub block: BlockHeader,
pub unp_size: u16,
pub unp_ver: u8,
pub method: u8,
pub comment_crc: u16,
pub packed_range: Range<usize>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.block: BlockHeader§unp_size: u16§unp_ver: u8§method: u8§comment_crc: u16§packed_range: Range<usize>Trait Implementations§
Source§impl Clone for CommentHeader
impl Clone for CommentHeader
Source§fn clone(&self) -> CommentHeader
fn clone(&self) -> CommentHeader
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 moreSource§impl Debug for CommentHeader
impl Debug for CommentHeader
Source§impl PartialEq for CommentHeader
impl PartialEq for CommentHeader
Source§fn eq(&self, other: &CommentHeader) -> bool
fn eq(&self, other: &CommentHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CommentHeader
impl StructuralPartialEq for CommentHeader
Auto Trait Implementations§
impl Freeze for CommentHeader
impl RefUnwindSafe for CommentHeader
impl Send for CommentHeader
impl Sync for CommentHeader
impl Unpin for CommentHeader
impl UnsafeUnpin for CommentHeader
impl UnwindSafe for CommentHeader
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