[−][src]Enum rustc_trait_selection::traits::error_reporting::ArgKind
Summarizes information
Variants
An argument of non-tuple type. Parameters are (name, ty)
An argument of tuple type. For a "found" argument, the span is the locationo in the source of the pattern. For a "expected" argument, it will be None. The vector is a list of (name, ty) strings for the components of the tuple.
Implementations
impl ArgKind[src]
pub(in traits::error_reporting) fn empty(
) -> ArgKind[src]
) -> ArgKind
pub fn from_expected_ty(t: Ty<'_>, span: Option<Span>) -> ArgKind[src]
Creates an ArgKind from the expected type of an
argument. It has no name (_) and an optional source span.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ArgKind
impl !Send for ArgKind
impl !Sync for ArgKind
impl Unpin for ArgKind
impl UnwindSafe for ArgKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.