pub enum HeaderSection {
Size,
Hash,
Offset,
}Variants§
Implementations§
Source§impl HeaderSection
impl HeaderSection
pub fn from_byte_position( byte_index: usize, obj_type: ObjectType, raw_data_len: usize, size_byte_count: usize, ) -> Self
Trait Implementations§
Source§impl Clone for HeaderSection
impl Clone for HeaderSection
Source§fn clone(&self) -> HeaderSection
fn clone(&self) -> HeaderSection
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 moreimpl Copy for HeaderSection
Source§impl Debug for HeaderSection
impl Debug for HeaderSection
Source§impl Display for HeaderSection
impl Display for HeaderSection
Source§impl PartialEq for HeaderSection
impl PartialEq for HeaderSection
Source§fn eq(&self, other: &HeaderSection) -> bool
fn eq(&self, other: &HeaderSection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeaderSection
Auto Trait Implementations§
impl Freeze for HeaderSection
impl RefUnwindSafe for HeaderSection
impl Send for HeaderSection
impl Sync for HeaderSection
impl Unpin for HeaderSection
impl UnsafeUnpin for HeaderSection
impl UnwindSafe for HeaderSection
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more