Struct sphinx::runtime::VariantKey
source · [−]pub struct VariantKey<'a>(_);
Expand description
Wrapper for variant that dynamically ensures hashability
Trait Implementations
sourceimpl<'a> Clone for VariantKey<'a>
impl<'a> Clone for VariantKey<'a>
sourcefn clone(&self) -> VariantKey<'a>
fn clone(&self) -> VariantKey<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Hash for VariantKey<'_>
impl Hash for VariantKey<'_>
sourceimpl<'s> PartialEq<VariantKey<'_>> for VariantKey<'_>
impl<'s> PartialEq<VariantKey<'_>> for VariantKey<'_>
sourceimpl<'a> TryFrom<&'a Variant> for VariantKey<'a>
impl<'a> TryFrom<&'a Variant> for VariantKey<'a>
type Error = Box<RuntimeError, Global>
type Error = Box<RuntimeError, Global>
The type returned in the event of a conversion error.
sourcefn try_from(value: &'a Variant) -> ExecResult<Self>
fn try_from(value: &'a Variant) -> ExecResult<Self>
Performs the conversion.
impl Eq for VariantKey<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for VariantKey<'a>
impl<'a> !Send for VariantKey<'a>
impl<'a> !Sync for VariantKey<'a>
impl<'a> Unpin for VariantKey<'a>
impl<'a> !UnwindSafe for VariantKey<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
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.
sourcefn clone_into(&self, target: &mut T)
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