Enum moore_vhdl::ty2::EnumVariant
source · [−]Expand description
An enumeration variant.
Distinguishes between:
- identifier literals such as
FOO
, and - character literals such as
'0'
.
Variants
Ident(Name)
An identifier enumeration literal.
Char(char)
A character enumeration ltieral.
Trait Implementations
sourceimpl Clone for EnumVariant
impl Clone for EnumVariant
sourcefn clone(&self) -> EnumVariant
fn clone(&self) -> EnumVariant
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 Debug for EnumVariant
impl Debug for EnumVariant
sourceimpl Display for EnumVariant
impl Display for EnumVariant
sourceimpl<'a> From<&'a str> for EnumVariant
impl<'a> From<&'a str> for EnumVariant
sourcefn from(n: &'a str) -> EnumVariant
fn from(n: &'a str) -> EnumVariant
Performs the conversion.
sourceimpl From<Name> for EnumVariant
impl From<Name> for EnumVariant
sourcefn from(n: Name) -> EnumVariant
fn from(n: Name) -> EnumVariant
Performs the conversion.
sourceimpl From<char> for EnumVariant
impl From<char> for EnumVariant
sourcefn from(c: char) -> EnumVariant
fn from(c: char) -> EnumVariant
Performs the conversion.
sourceimpl PartialEq<EnumVariant> for EnumVariant
impl PartialEq<EnumVariant> for EnumVariant
sourcefn eq(&self, other: &EnumVariant) -> bool
fn eq(&self, other: &EnumVariant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EnumVariant) -> bool
fn ne(&self, other: &EnumVariant) -> bool
This method tests for !=
.
impl Eq for EnumVariant
impl StructuralEq for EnumVariant
impl StructuralPartialEq for EnumVariant
Auto Trait Implementations
impl RefUnwindSafe for EnumVariant
impl Send for EnumVariant
impl Sync for EnumVariant
impl Unpin for EnumVariant
impl UnwindSafe for EnumVariant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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