pub struct VariantHint {
pub prefix_len: usize,
pub variant: VariantPath,
}Expand description
Explicit variant selection for a union located at a path prefix.
Fields§
§prefix_len: usizeNumber of path segments consumed when the union is reached.
variant: VariantPathVariant path (possibly nested, e.g. ok.some.left).
Trait Implementations§
Source§impl Clone for VariantHint
impl Clone for VariantHint
Source§fn clone(&self) -> VariantHint
fn clone(&self) -> VariantHint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VariantHint
impl Debug for VariantHint
impl Eq for VariantHint
Source§impl PartialEq for VariantHint
impl PartialEq for VariantHint
impl StructuralPartialEq for VariantHint
Auto Trait Implementations§
impl Freeze for VariantHint
impl RefUnwindSafe for VariantHint
impl Send for VariantHint
impl Sync for VariantHint
impl Unpin for VariantHint
impl UnsafeUnpin for VariantHint
impl UnwindSafe for VariantHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.