Enum rustc_resolve::late::ConstantHasGenerics
source · pub(crate) enum ConstantHasGenerics {
Yes,
No,
}
Expand description
May this constant have generics?
Variants§
Implementations§
source§impl ConstantHasGenerics
impl ConstantHasGenerics
fn force_yes_if(self, b: bool) -> Self
Trait Implementations§
source§impl Clone for ConstantHasGenerics
impl Clone for ConstantHasGenerics
source§fn clone(&self) -> ConstantHasGenerics
fn clone(&self) -> ConstantHasGenerics
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 ConstantHasGenerics
impl Debug for ConstantHasGenerics
source§impl PartialEq<ConstantHasGenerics> for ConstantHasGenerics
impl PartialEq<ConstantHasGenerics> for ConstantHasGenerics
source§fn eq(&self, other: &ConstantHasGenerics) -> bool
fn eq(&self, other: &ConstantHasGenerics) -> bool
impl Copy for ConstantHasGenerics
impl Eq for ConstantHasGenerics
impl StructuralEq for ConstantHasGenerics
impl StructuralPartialEq for ConstantHasGenerics
Auto Trait Implementations§
impl RefUnwindSafe for ConstantHasGenerics
impl Send for ConstantHasGenerics
impl Sync for ConstantHasGenerics
impl Unpin for ConstantHasGenerics
impl UnwindSafe for ConstantHasGenerics
Blanket Implementations§
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:
Yes
: 0 bytesNo
: 0 bytes