#[non_exhaustive]pub struct NewSubHeader {
pub file: FileHeader,
pub kind: NewSubKind,
}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.file: FileHeader§kind: NewSubKindImplementations§
Source§impl NewSubHeader
impl NewSubHeader
pub fn name_bytes(&self) -> &[u8] ⓘ
Sourcepub fn name_lossy(&self) -> String
pub fn name_lossy(&self) -> String
Returns the service-block name with invalid UTF-8 replaced for display only.
Use Self::name_bytes when exact archive bytes matter.
Trait Implementations§
Source§impl Clone for NewSubHeader
impl Clone for NewSubHeader
Source§fn clone(&self) -> NewSubHeader
fn clone(&self) -> NewSubHeader
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 NewSubHeader
impl Debug for NewSubHeader
Source§impl PartialEq for NewSubHeader
impl PartialEq for NewSubHeader
Source§fn eq(&self, other: &NewSubHeader) -> bool
fn eq(&self, other: &NewSubHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for NewSubHeader
impl StructuralPartialEq for NewSubHeader
Auto Trait Implementations§
impl Freeze for NewSubHeader
impl RefUnwindSafe for NewSubHeader
impl Send for NewSubHeader
impl Sync for NewSubHeader
impl Unpin for NewSubHeader
impl UnsafeUnpin for NewSubHeader
impl UnwindSafe for NewSubHeader
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