pub struct NonZeroHash(/* private fields */);Expand description
The primitive hash that among other things is used to reference items, types, and native functions.
§Examples
use rune::Hash;
assert!(Hash::index(0).as_non_empty().is_some());Implementations§
Trait Implementations§
Source§impl Clone for NonZeroHash
impl Clone for NonZeroHash
impl Copy for NonZeroHash
Source§impl Debug for NonZeroHash
impl Debug for NonZeroHash
Source§impl<'__de, __A> Decode<'__de, Binary, __A> for NonZeroHashwhere
__A: Allocator,
impl<'__de, __A> Decode<'__de, Binary, __A> for NonZeroHashwhere
__A: Allocator,
Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§impl<'__de, __A> Decode<'__de, Text, __A> for NonZeroHashwhere
__A: Allocator,
impl<'__de, __A> Decode<'__de, Text, __A> for NonZeroHashwhere
__A: Allocator,
Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§impl<'de> Deserialize<'de> for NonZeroHash
impl<'de> Deserialize<'de> for NonZeroHash
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NonZeroHash
impl Display for NonZeroHash
Source§impl Encode<Binary> for NonZeroHash
impl Encode<Binary> for NonZeroHash
Source§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§type Encode = NonZeroHash
type Encode = NonZeroHash
The underlying type being encoded. Read more
Source§impl Encode<Text> for NonZeroHash
impl Encode<Text> for NonZeroHash
Source§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§type Encode = NonZeroHash
type Encode = NonZeroHash
The underlying type being encoded. Read more
impl Eq for NonZeroHash
Source§impl Hash for NonZeroHash
impl Hash for NonZeroHash
Source§impl Ord for NonZeroHash
impl Ord for NonZeroHash
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NonZeroHash
impl PartialEq for NonZeroHash
Source§impl PartialEq<Hash> for NonZeroHash
impl PartialEq<Hash> for NonZeroHash
Source§impl PartialEq<NonZeroHash> for Hash
impl PartialEq<NonZeroHash> for Hash
Source§impl PartialOrd for NonZeroHash
impl PartialOrd for NonZeroHash
Source§impl Serialize for NonZeroHash
impl Serialize for NonZeroHash
impl StructuralPartialEq for NonZeroHash
Auto Trait Implementations§
impl Forget for NonZeroHash
impl Freeze for NonZeroHash
impl Move for NonZeroHash
impl RefUnwindSafe for NonZeroHash
impl Send for NonZeroHash
impl Sync for NonZeroHash
impl Unpin for NonZeroHash
impl UnsafeUnpin for NonZeroHash
impl UnwindSafe for NonZeroHash
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