Enum clippy_utils::macros::Count
source · pub enum Count<'tcx> {
Is(usize, Span),
Param(FormatParam<'tcx>),
Implied,
}
Variants
Is(usize, Span)
Specified with a literal number, stores the value.
Param(FormatParam<'tcx>)
Specified using $
and *
syntaxes. The *
format is still considered to be
FormatParamKind::Numbered
.
Implied
Not specified.
Implementations
Trait Implementations
impl<'tcx> Copy for Count<'tcx>
Auto Trait Implementations
impl<'tcx> RefUnwindSafe for Count<'tcx>
impl<'tcx> !Send for Count<'tcx>
impl<'tcx> !Sync for Count<'tcx>
impl<'tcx> Unpin for Count<'tcx>
impl<'tcx> UnwindSafe for Count<'tcx>
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: 32 bytes
Size for each variant:
Is
: 20 bytesParam
: 28 bytesImplied
: 0 bytes