Enum rustc_resolve::late::ConstantHasGenerics
source · [−]pub(crate) enum ConstantHasGenerics {
Yes,
No,
}
Expand description
May this constant have generics?
Variants
Yes
No
Implementations
sourceimpl ConstantHasGenerics
impl ConstantHasGenerics
fn force_yes_if(self, b: bool) -> Self
Trait Implementations
sourceimpl Clone for ConstantHasGenerics
impl Clone for ConstantHasGenerics
sourcefn clone(&self) -> ConstantHasGenerics
fn clone(&self) -> ConstantHasGenerics
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 moresourceimpl Debug for ConstantHasGenerics
impl Debug for ConstantHasGenerics
sourceimpl PartialEq<ConstantHasGenerics> for ConstantHasGenerics
impl PartialEq<ConstantHasGenerics> for ConstantHasGenerics
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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:
Yes
: 0 bytesNo
: 0 bytes