Enum clippy_utils::macros::Count
source · pub enum Count<'tcx> {
Is(usize, Span),
Param(FormatParam<'tcx>),
Implied(Option<Span>),
}
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(Option<Span>)
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§
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
: 16 bytesParam
: 32 bytesImplied
: 12 bytes