[−][src]Struct smash_arc::Hash40
A hash consisting of a crc32 and a 8-bit length. Used within Smash Ultimate as a unique identifier for various strings.
Implementations
impl Hash40
[src]
impl Hash40
[src]
pub fn label<'a>(&self, labels: &'a HashLabels) -> Option<&'a str>
[src]
pub fn global_label(&self) -> Option<String>
[src]
pub fn set_global_labels_file<P: AsRef<Path>>(
label_file: P
) -> Result<(), Error>
[src]
label_file: P
) -> Result<(), Error>
pub fn set_global_labels(labels: HashLabels)
[src]
Trait Implementations
impl BinRead for Hash40
[src]
type Args = ()
The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more
fn read_options<R: Read + Seek>(
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<Self>
[src]
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<Self>
fn after_parse<R: Read + Seek>(
&mut self,
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<()>
[src]
&mut self,
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<()>
pub fn read<R>(reader: &mut R) -> Result<Self, Error> where
R: Read + Seek,
[src]
R: Read + Seek,
pub fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error> where
R: Read + Seek,
[src]
R: Read + Seek,
pub fn args_default() -> Option<Self::Args>
[src]
impl Clone for Hash40
[src]
impl Copy for Hash40
[src]
impl Debug for Hash40
[src]
impl Eq for Hash40
[src]
impl From<&'_ Hash40> for Hash40
[src]
impl From<&'_ HashToIndex> for Hash40
[src]
fn from(hash_index: &HashToIndex) -> Self
[src]
impl From<&'_ StreamEntry> for Hash40
[src]
fn from(hash_index: &StreamEntry) -> Self
[src]
impl From<&'_ str> for Hash40
[src]
impl From<HashToIndex> for Hash40
[src]
fn from(hash_index: HashToIndex) -> Self
[src]
impl From<StreamEntry> for Hash40
[src]
fn from(hash_index: StreamEntry) -> Self
[src]
impl From<u64> for Hash40
[src]
impl Hash for Hash40
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Hash40
[src]
fn cmp(&self, other: &Hash40) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Hash40> for Hash40
[src]
impl PartialOrd<Hash40> for Hash40
[src]
fn partial_cmp(&self, other: &Hash40) -> Option<Ordering>
[src]
fn lt(&self, other: &Hash40) -> bool
[src]
fn le(&self, other: &Hash40) -> bool
[src]
fn gt(&self, other: &Hash40) -> bool
[src]
fn ge(&self, other: &Hash40) -> bool
[src]
impl StructuralEq for Hash40
[src]
impl StructuralPartialEq for Hash40
[src]
Auto Trait Implementations
impl RefUnwindSafe for Hash40
[src]
impl Send for Hash40
[src]
impl Sync for Hash40
[src]
impl Unpin for Hash40
[src]
impl UnwindSafe for Hash40
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,