[−][src]Struct rustc_mir_build::thir::pattern::_match::MissingConstructors

struct MissingConstructors<'tcx> {
    all_ctors: Vec<Constructor<'tcx>>,
    used_ctors: Vec<Constructor<'tcx>>,
}

Fields

all_ctors: Vec<Constructor<'tcx>>used_ctors: Vec<Constructor<'tcx>>

Implementations

impl<'tcx> MissingConstructors<'tcx>[src]

fn new(
    all_ctors: Vec<Constructor<'tcx>>,
    used_ctors: Vec<Constructor<'tcx>>
) -> Self
[src]

fn into_inner(self) -> (Vec<Constructor<'tcx>>, Vec<Constructor<'tcx>>)[src]

fn is_empty(&self) -> bool[src]

fn all_ctors_are_missing(&self) -> bool[src]

Whether this contains all the constructors for the given type or only a subset.

fn iter<'a>(&'a self) -> impl Iterator<Item = Constructor<'tcx>> + Captures<'a>[src]

Iterate over all_ctors \ used_ctors

Trait Implementations

impl<'tcx> Debug for MissingConstructors<'tcx>[src]

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for MissingConstructors<'tcx>

impl<'tcx> !Send for MissingConstructors<'tcx>

impl<'tcx> !Sync for MissingConstructors<'tcx>

impl<'tcx> Unpin for MissingConstructors<'tcx>

impl<'tcx> !UnwindSafe for MissingConstructors<'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.