pub struct Enum<'value, 'dwarf, P = DefaultProvider>where
P: DebugInfoProvider,{ /* private fields */ }
Expand description
A value of a sum type; e.g., a Rust-style enum.
Implementations§
Trait Implementations§
Source§impl<'value, 'dwarf, P> Debug for Enum<'value, 'dwarf, P>where
P: DebugInfoProvider,
impl<'value, 'dwarf, P> Debug for Enum<'value, 'dwarf, P>where
P: DebugInfoProvider,
Source§impl<'value, 'dwarf, P> Display for Enum<'value, 'dwarf, P>where
P: DebugInfoProvider,
impl<'value, 'dwarf, P> Display for Enum<'value, 'dwarf, P>where
P: DebugInfoProvider,
Source§impl<'value, 'dwarf, P> From<Enum<'value, 'dwarf, P>> for Value<'value, 'dwarf, P>where
P: DebugInfoProvider,
Upcast a Enum<'value, 'dwarf, P>
into a Value<'value, 'dwarf, P>
.
impl<'value, 'dwarf, P> From<Enum<'value, 'dwarf, P>> for Value<'value, 'dwarf, P>where
P: DebugInfoProvider,
Upcast a Enum<'value, 'dwarf, P>
into a Value<'value, 'dwarf, P>
.
Source§impl<'a, 'value, 'dwarf, P> TryFrom<&'a Value<'value, 'dwarf, P>> for &'a Enum<'value, 'dwarf, P>where
P: DebugInfoProvider,
Attempt to downcast a &Value<'value, 'dwarf, P>
into a &Enum<'value, 'dwarf, P>
.
impl<'a, 'value, 'dwarf, P> TryFrom<&'a Value<'value, 'dwarf, P>> for &'a Enum<'value, 'dwarf, P>where
P: DebugInfoProvider,
Attempt to downcast a &Value<'value, 'dwarf, P>
into a &Enum<'value, 'dwarf, P>
.
Source§impl<'value, 'dwarf, P> TryFrom<Value<'value, 'dwarf, P>> for Enum<'value, 'dwarf, P>where
P: DebugInfoProvider,
Attempt to downcast a Value<'value, 'dwarf, P>
into a Enum<'value, 'dwarf, P>
.
impl<'value, 'dwarf, P> TryFrom<Value<'value, 'dwarf, P>> for Enum<'value, 'dwarf, P>where
P: DebugInfoProvider,
Attempt to downcast a Value<'value, 'dwarf, P>
into a Enum<'value, 'dwarf, P>
.
Auto Trait Implementations§
impl<'value, 'dwarf, P = DefaultProvider> !Freeze for Enum<'value, 'dwarf, P>
impl<'value, 'dwarf, P = DefaultProvider> !RefUnwindSafe for Enum<'value, 'dwarf, P>
impl<'value, 'dwarf, P> Send for Enum<'value, 'dwarf, P>
impl<'value, 'dwarf, P = DefaultProvider> !Sync for Enum<'value, 'dwarf, P>
impl<'value, 'dwarf, P> Unpin for Enum<'value, 'dwarf, P>
impl<'value, 'dwarf, P> UnwindSafe for Enum<'value, 'dwarf, P>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Reflect for Twhere
T: ?Sized,
impl<T> Reflect for Twhere
T: ?Sized,
Source§fn local_type_id(&self) -> usize
fn local_type_id(&self) -> usize
Produces an ID that uniquely identifies the type within its compilation
unit.