#[repr(transparent)]pub struct Hash40(pub u64);
Tuple Fields§
§0: u64
Implementations§
source§impl Hash40
impl Hash40
pub fn label(self, labels: &HashLabels) -> Option<&str>
pub fn global_label(self) -> Option<String>
pub fn set_global_labels_file<P: AsRef<Path>>( label_file: P ) -> Result<(), Error>
pub fn set_global_labels(labels: HashLabels)
Trait Implementations§
source§impl BinRead for Hash40
impl BinRead for Hash40
source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_> ) -> BinResult<Self>
source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self
from the reader using default arguments and assuming
big-endian byte order. Read moresource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self
from the reader using default arguments and assuming
little-endian byte order. Read moresource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T
from the reader assuming native-endian byte order. Read moresource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self
from the reader, assuming big-endian byte order, using the
given arguments. Read moresource§fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self
from the reader, assuming little-endian byte order, using
the given arguments. Read moresource§impl From<&HashToIndex> for Hash40
impl From<&HashToIndex> for Hash40
source§fn from(hash_index: &HashToIndex) -> Self
fn from(hash_index: &HashToIndex) -> Self
Converts to this type from the input type.
source§impl From<HashToIndex> for Hash40
impl From<HashToIndex> for Hash40
source§fn from(hash_index: HashToIndex) -> Self
fn from(hash_index: HashToIndex) -> Self
Converts to this type from the input type.
source§impl Ord for Hash40
impl Ord for Hash40
source§impl PartialEq<Hash40> for HashToIndex
impl PartialEq<Hash40> for HashToIndex
source§impl PartialEq for Hash40
impl PartialEq for Hash40
source§impl PartialOrd for Hash40
impl PartialOrd for Hash40
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Hash40
impl Eq for Hash40
impl StructuralEq for Hash40
impl StructuralPartialEq for Hash40
Auto Trait Implementations§
impl RefUnwindSafe for Hash40
impl Send for Hash40
impl Sync for Hash40
impl Unpin for Hash40
impl UnwindSafe for Hash40
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