Enum rustc_resolve::late::AnonConstKind
source · enum AnonConstKind {
EnumDiscriminant,
InlineConst,
ConstArg(IsRepeatExpr),
}
Expand description
Describes whether an AnonConst
is a type level const arg or
some other form of anon const (i.e. inline consts or enum discriminants)
Variants§
Trait Implementations§
source§impl Clone for AnonConstKind
impl Clone for AnonConstKind
source§fn clone(&self) -> AnonConstKind
fn clone(&self) -> AnonConstKind
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 AnonConstKind
impl Debug for AnonConstKind
source§impl PartialEq<AnonConstKind> for AnonConstKind
impl PartialEq<AnonConstKind> for AnonConstKind
source§fn eq(&self, other: &AnonConstKind) -> bool
fn eq(&self, other: &AnonConstKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AnonConstKind
impl Eq for AnonConstKind
impl StructuralEq for AnonConstKind
impl StructuralPartialEq for AnonConstKind
Auto Trait Implementations§
impl RefUnwindSafe for AnonConstKind
impl Send for AnonConstKind
impl Sync for AnonConstKind
impl Unpin for AnonConstKind
impl UnwindSafe for AnonConstKind
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
EnumDiscriminant
: 0 bytesInlineConst
: 0 bytesConstArg
: 1 byte