struct LocalStatus {
box_pointee_assignment: Option<(StmtLoc, Place)>,
ambiguous: bool,
used_outside_derefs: bool,
}Fields§
§box_pointee_assignment: Option<(StmtLoc, Place)>Whether that local is the target of the special transmute statement we’re looking for.
Stores the *b where b is the Box.
ambiguous: boolWhether that local is the target of more than one such special transmute.
used_outside_derefs: boolWhether that local is ever used outside of a deref projection (apart from the initial assignment).
Implementations§
Source§impl LocalStatus
impl LocalStatus
fn rewritable_box_pointee(&self) -> Option<&(StmtLoc, Place)>
Trait Implementations§
Source§impl Default for LocalStatus
impl Default for LocalStatus
Source§fn default() -> LocalStatus
fn default() -> LocalStatus
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalStatus
impl RefUnwindSafe for LocalStatus
impl Send for LocalStatus
impl Sync for LocalStatus
impl Unpin for LocalStatus
impl UnsafeUnpin for LocalStatus
impl UnwindSafe for LocalStatus
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<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more