[][src]Struct wad::EntryId

pub struct EntryId(_);

Methods

impl EntryId[src]

pub fn from_bytes(bytes: &[u8; 8]) -> EntryId[src]

pub fn from_str(
    s: impl AsRef<str>
) -> Option<EntryId>
[src]

None if s is too long or if s contains non-ASCII characters. Normalized to uppercase and zero-padded.

pub fn as_bytes<'a>(&'a self) -> &'a [u8; 8][src]

pub fn display<'a>(&'a self) -> &'a str[src]

Lossy display representation. If this was created with from_bytes with a buffer containing non-ASCII characters, this function will return "?".

Trait Implementations

impl<'_> From<&'_ [u8; 8]> for EntryId[src]

impl<'_> From<&'_ [u8; 7]> for EntryId[src]

impl<'_> From<&'_ [u8; 6]> for EntryId[src]

impl<'_> From<&'_ [u8; 5]> for EntryId[src]

impl<'_> From<&'_ [u8; 4]> for EntryId[src]

impl<'_> From<&'_ [u8; 3]> for EntryId[src]

impl<'_> From<&'_ [u8; 2]> for EntryId[src]

impl<'_> From<&'_ [u8; 1]> for EntryId[src]

impl PartialEq<EntryId> for EntryId[src]

impl Eq for EntryId[src]

impl Debug for EntryId[src]

impl Display for EntryId[src]

impl Hash for EntryId[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for EntryId

impl Sync for EntryId

Blanket Implementations

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

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.