[][src]Struct smash_arc::Hash40

#[repr(transparent)]pub struct Hash40(pub u64);

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]

pub fn as_u64(&self) -> u64[src]

pub fn len(&self) -> u8[src]

pub fn crc32(&self) -> u32[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]

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

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]

impl From<&'_ StreamEntry> for Hash40[src]

impl From<&'_ str> for Hash40[src]

impl From<HashToIndex> for Hash40[src]

impl From<StreamEntry> for Hash40[src]

impl From<u64> for Hash40[src]

impl Hash for Hash40[src]

impl Ord for Hash40[src]

impl PartialEq<Hash40> for Hash40[src]

impl PartialOrd<Hash40> for Hash40[src]

impl StructuralEq for Hash40[src]

impl StructuralPartialEq for Hash40[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.