pub struct VariantKey<'a>(/* private fields */);
Expand description
Wrapper for variant that dynamically ensures hashability
Trait Implementations§
Source§impl<'a> Clone for VariantKey<'a>
impl<'a> Clone for VariantKey<'a>
Source§fn clone(&self) -> VariantKey<'a>
fn clone(&self) -> VariantKey<'a>
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 Hash for VariantKey<'_>
impl Hash for VariantKey<'_>
Source§impl<'s> PartialEq for VariantKey<'_>
impl<'s> PartialEq for VariantKey<'_>
Source§impl<'a> TryFrom<&'a Variant> for VariantKey<'a>
impl<'a> TryFrom<&'a Variant> for VariantKey<'a>
Source§type Error = Box<RuntimeError>
type Error = Box<RuntimeError>
The type returned in the event of a conversion error.
Source§fn 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> Freeze for VariantKey<'a>
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§
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