pub enum VariantVisibility {
Visible,
Hidden,
Empty,
}
Variants§
Visible
Variant that doesn’t fit the other cases, i.e. most variants.
Hidden
Variant behind an unstable gate or with the #[doc(hidden)]
attribute. It will not be
mentioned in diagnostics unless the user mentioned it first.
Empty
Variant that matches no value. E.g. Some::<Option<!>>
if the exhaustive_patterns
feature
is enabled. Like Hidden
, it will not be mentioned in diagnostics unless the user mentioned
it first.
Trait Implementations§
Source§impl Clone for VariantVisibility
impl Clone for VariantVisibility
Source§fn clone(&self) -> VariantVisibility
fn clone(&self) -> VariantVisibility
Returns a copy 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 Debug for VariantVisibility
impl Debug for VariantVisibility
impl Copy for VariantVisibility
Auto Trait Implementations§
impl Freeze for VariantVisibility
impl RefUnwindSafe for VariantVisibility
impl Send for VariantVisibility
impl Sync for VariantVisibility
impl Unpin for VariantVisibility
impl UnwindSafe for VariantVisibility
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