Enum clippy_utils::consts::ConstantSource
source · pub enum ConstantSource {
Local,
Constant,
}
Expand description
The source of a constant value.
Variants§
Local
The value is determined solely from the expression.
Constant
The value is dependent on a defined constant.
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ConstantSource
impl Send for ConstantSource
impl Sync for ConstantSource
impl Unpin for ConstantSource
impl UnwindSafe for ConstantSource
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:
Local
: 0 bytesConstant
: 0 bytes