Enum cl_ast::ast::VariantKind
source · pub enum VariantKind {
Plain,
CLike(u128),
Tuple(Ty),
Struct(Vec<StructMember>),
}
Expand description
Whether the Variant has a C-like constant value, a tuple, or StructMembers
Variants§
Trait Implementations§
source§impl Clone for VariantKind
impl Clone for VariantKind
source§fn clone(&self) -> VariantKind
fn clone(&self) -> VariantKind
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 VariantKind
impl Debug for VariantKind
source§impl Display for VariantKind
impl Display for VariantKind
source§impl From<Ty> for VariantKind
impl From<Ty> for VariantKind
source§impl From<u128> for VariantKind
impl From<u128> for VariantKind
source§impl Hash for VariantKind
impl Hash for VariantKind
source§impl PartialEq for VariantKind
impl PartialEq for VariantKind
source§fn eq(&self, other: &VariantKind) -> bool
fn eq(&self, other: &VariantKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VariantKind
impl StructuralPartialEq for VariantKind
Auto Trait Implementations§
impl Freeze for VariantKind
impl RefUnwindSafe for VariantKind
impl Send for VariantKind
impl Sync for VariantKind
impl Unpin for VariantKind
impl UnwindSafe for VariantKind
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