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
Source§fn clone(&self) -> NonZeroHash
fn clone(&self) -> NonZeroHash
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
Source§impl Hash for NonZeroHash
impl Hash for NonZeroHash
Source§impl Ord for NonZeroHash
impl Ord for NonZeroHash
Source§fn cmp(&self, other: &NonZeroHash) -> Ordering
fn cmp(&self, other: &NonZeroHash) -> Ordering
1.21.0 · 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
Source§impl PartialEq<Hash> for NonZeroHash
impl PartialEq<Hash> for NonZeroHash
Source§impl PartialEq<NonZeroHash> for Hash
impl PartialEq<NonZeroHash> for Hash
Source§impl PartialEq for NonZeroHash
impl PartialEq for NonZeroHash
Source§impl PartialOrd for NonZeroHash
impl PartialOrd for NonZeroHash
Source§impl Serialize for NonZeroHash
impl Serialize for NonZeroHash
Source§impl TryClone for NonZeroHash
impl TryClone for NonZeroHash
impl Copy for NonZeroHash
impl Eq for NonZeroHash
impl StructuralPartialEq for NonZeroHash
Auto Trait Implementations§
impl Freeze for NonZeroHash
impl RefUnwindSafe for NonZeroHash
impl Send for NonZeroHash
impl Sync for NonZeroHash
impl Unpin 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