pub struct MaybeMissingLocal {
pub message: String,
pub has_present_flag: bool,
}Expand description
A function-local binding that holds a read which may have found no value;
see TypedAst::maybe_missing_locals.
Fields§
§message: StringWhat a use at T throws when the value is missing; it names the read.
has_present_flag: boolWhether codegen keeps a present flag beside the binding: one typed
with a type parameter, whose instantiation may hold undefined, can’t
tell a missing read from a present undefined by its value. Recorded
here because wide-slot erasure may type the binding unknown before
codegen sees it.
Trait Implementations§
Source§impl Clone for MaybeMissingLocal
impl Clone for MaybeMissingLocal
Auto Trait Implementations§
impl Forget for MaybeMissingLocal
impl Freeze for MaybeMissingLocal
impl RefUnwindSafe for MaybeMissingLocal
impl Send for MaybeMissingLocal
impl Sync for MaybeMissingLocal
impl Unpin for MaybeMissingLocal
impl UnsafeUnpin for MaybeMissingLocal
impl UnwindSafe for MaybeMissingLocal
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