[−][src]Struct runestick::Hash
The hash of a primitive thing.
Implementations
impl Hash
[src]
pub fn instance_function<N>(value_type: ValueType, name: N) -> Self where
N: IntoTypeHash,
[src]
N: IntoTypeHash,
Construct a hash to an instance function, where the instance is a pre-determined type.
pub fn getter<N>(value_type: ValueType, name: N) -> Self where
N: IntoTypeHash,
[src]
N: IntoTypeHash,
Construct a hash corresponding to a getter.
pub fn of<T: Hash>(thing: T) -> Self
[src]
Construct a simple hash from something that is hashable.
pub fn object_keys<I>(keys: I) -> Self where
I: IntoIterator,
I::Item: AsRef<str>,
[src]
I: IntoIterator,
I::Item: AsRef<str>,
Hash the given iterator of object keys.
pub fn type_hash<I>(path: I) -> Self where
I: IntoTypeHash,
[src]
I: IntoTypeHash,
Get the hash of a type.
pub fn of_any<T>() -> Self where
T: Any,
[src]
T: Any,
Construct a type hash from an any type.
pub fn from_type_id(type_id: TypeId) -> Self
[src]
Construct a hash from a type id.
Trait Implementations
impl Clone for Hash
[src]
impl Copy for Hash
[src]
impl Debug for Hash
[src]
impl Display for Hash
[src]
impl Eq for Hash
[src]
impl Hash for Hash
[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,
impl IntoTypeHash for Hash
[src]
fn into_type_hash(self) -> Hash
[src]
impl Ord for Hash
[src]
fn cmp(&self, other: &Hash) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Hash> for Hash
[src]
impl PartialEq<Hash> for ValueType
[src]
impl PartialOrd<Hash> for Hash
[src]
fn partial_cmp(&self, other: &Hash) -> Option<Ordering>
[src]
fn lt(&self, other: &Hash) -> bool
[src]
fn le(&self, other: &Hash) -> bool
[src]
fn gt(&self, other: &Hash) -> bool
[src]
fn ge(&self, other: &Hash) -> bool
[src]
impl StructuralEq for Hash
[src]
impl StructuralPartialEq for Hash
[src]
Auto Trait Implementations
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,