Struct rustc_pattern_analysis::usefulness::UsefulnessCtxt
source · pub struct UsefulnessCtxt<'a, Cx: TypeCx> {
pub tycx: &'a Cx,
}Expand description
Context that provides information for usefulness checking.
Fields§
§tycx: &'a CxThe context for type information.
Trait Implementations§
source§impl<'a, Cx: TypeCx> Clone for UsefulnessCtxt<'a, Cx>
impl<'a, Cx: TypeCx> Clone for UsefulnessCtxt<'a, Cx>
impl<'a, Cx: TypeCx> Copy for UsefulnessCtxt<'a, Cx>
Auto Trait Implementations§
impl<'a, Cx> RefUnwindSafe for UsefulnessCtxt<'a, Cx>where
Cx: RefUnwindSafe,
impl<'a, Cx> Send for UsefulnessCtxt<'a, Cx>where
Cx: Sync,
impl<'a, Cx> Sync for UsefulnessCtxt<'a, Cx>where
Cx: Sync,
impl<'a, Cx> Unpin for UsefulnessCtxt<'a, Cx>
impl<'a, Cx> UnwindSafe for UsefulnessCtxt<'a, Cx>where
Cx: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn 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: 8 bytes