[−][src]Struct wad::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]
s: impl AsRef<str>
) -> Option<EntryId>
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 Eq for EntryId
[src]
impl PartialEq<EntryId> for EntryId
[src]
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 Hash for EntryId
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for EntryId
[src]
impl Display for EntryId
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,