pub struct FileHeadTail4 {
pub len: u64,
pub head: [u8; 4],
pub tail: [u8; 4],
}Expand description
Small probe structure used by higher-level code (e.g. segment validators) to inspect a file’s length and its first/last 4 bytes.
Fields§
§len: u64Length of the file in bytes.
head: [u8; 4]First 4 bytes of the file (zero-filled if the file is shorter).
tail: [u8; 4]Last 4 bytes of the file (zero-filled if the file is shorter).
Auto Trait Implementations§
impl Freeze for FileHeadTail4
impl RefUnwindSafe for FileHeadTail4
impl Send for FileHeadTail4
impl Sync for FileHeadTail4
impl Unpin for FileHeadTail4
impl UnsafeUnpin for FileHeadTail4
impl UnwindSafe for FileHeadTail4
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more