Enum clippy_utils::check_proc_macro::Pat
source · Expand description
The search pattern to look for. Used by span_matches_pat
Variants§
Str(&'static str)
A single string.
MultiStr(&'static [&'static str])
Any of the given strings.
Sym(Symbol)
The string representation of the symbol.
Num
Any decimal or hexadecimal digit depending on the location.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Pat
impl Send for Pat
impl Sync for Pat
impl Unpin for Pat
impl UnwindSafe for Pat
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: 24 bytes
Size for each variant:
Str
: 20 bytesMultiStr
: 20 bytesSym
: 4 bytesNum
: 0 bytes