Enum rustc_resolve::late::ConstantHasGenerics
source · pub(crate) enum ConstantHasGenerics {
Yes,
No(NoConstantGenericsReason),
}
Expand description
May this constant have generics?
Variants§
Yes
No(NoConstantGenericsReason)
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
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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:
Yes
: 0 bytesNo
: 1 byte