Struct rustc_typeck::astconv::GenericArgCountMismatch
source · [−]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
sourceimpl Clone for GenericArgCountMismatch
impl Clone for GenericArgCountMismatch
sourcefn clone(&self) -> GenericArgCountMismatch
fn clone(&self) -> GenericArgCountMismatch
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GenericArgCountMismatch
impl Debug for GenericArgCountMismatch
sourceimpl Default for GenericArgCountMismatch
impl Default for GenericArgCountMismatch
sourcefn 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
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
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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