pub struct Hash(/* private fields */);
Expand description
The hash of a primitive thing.
Implementations§
Source§impl Hash
impl Hash
Sourcepub const GLOBAL_MODULE: Hash
pub const GLOBAL_MODULE: Hash
Hash corresponding to global function calls.
Sourcepub fn object_keys<I>(keys: I) -> Self
pub fn object_keys<I>(keys: I) -> Self
Hash the given iterator of object keys.
Sourcepub fn instance_function(ty: ValueType, name: Hash) -> Self
pub fn instance_function(ty: ValueType, name: Hash) -> Self
Construct a hash to an instance function, where the instance is a pre-determined type.
Trait Implementations§
Source§impl Ord for Hash
impl Ord for Hash
Source§impl PartialOrd for Hash
impl PartialOrd for Hash
impl Copy for Hash
impl Eq for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations§
impl Freeze for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
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