Struct runtime::HashableObjectRef
source · [−]pub struct HashableObjectRef { /* private fields */ }
Expand description
An object reference that’s guaranteed to have a valid hash (that doesn’t throw errors)
Construct a HashableObjectRef
using the hashable
method of ObjectRef
Unlike ObjectRef, HashableObjectRef implements Hash
Implementations
Trait Implementations
sourceimpl Clone for HashableObjectRef
impl Clone for HashableObjectRef
sourceimpl Debug for HashableObjectRef
impl Debug for HashableObjectRef
sourceimpl Deref for HashableObjectRef
impl Deref for HashableObjectRef
sourceimpl DerefMut for HashableObjectRef
impl DerefMut for HashableObjectRef
sourceimpl Hash for HashableObjectRef
impl Hash for HashableObjectRef
impl Eq for HashableObjectRef
Auto Trait Implementations
impl !RefUnwindSafe for HashableObjectRef
impl !Send for HashableObjectRef
impl !Sync for HashableObjectRef
impl Unpin for HashableObjectRef
impl !UnwindSafe for HashableObjectRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more