pub struct GenericArgCountMismatch {
pub reported: Option<ErrorGuaranteed>,
pub invalid_args: Vec<Span>,
}
Expand description
A marker denoting that the generic arguments that were provided did not match the respective generic parameters.
Fields§
§reported: Option<ErrorGuaranteed>
Indicates whether a fatal error was reported (Some
), or just a lint (None
).
invalid_args: Vec<Span>
A list of spans of arguments provided that were not valid.
Trait Implementations§
source§impl Clone for GenericArgCountMismatch
impl Clone for GenericArgCountMismatch
source§fn clone(&self) -> GenericArgCountMismatch
fn clone(&self) -> GenericArgCountMismatch
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 GenericArgCountMismatch
impl Debug for GenericArgCountMismatch
source§impl Default for GenericArgCountMismatch
impl Default for GenericArgCountMismatch
source§fn default() -> GenericArgCountMismatch
fn default() -> GenericArgCountMismatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GenericArgCountMismatch
impl !Send for GenericArgCountMismatch
impl !Sync for GenericArgCountMismatch
impl Unpin for GenericArgCountMismatch
impl UnwindSafe for GenericArgCountMismatch
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