struct Rewrite {Show 18 fields
new_uninit_bid: BlockId,
new_uninit_target: BlockId,
drop_bid: BlockId,
target_bid: BlockId,
payload_loc: StmtLoc,
move_loc: StmtLoc,
arg_move_loc: StmtLoc,
span: Span,
payload_elems: Vec<Operand>,
elem_ty: Ty,
len: Box<ConstantExpr>,
uninit_box: Place,
branched_before_payload: bool,
box_array: Place,
box_array_generics: GenericArgs,
assume_init_generics: GenericArgs,
drop_on_unwind: BlockId,
assume_init_target: BlockId,
}Fields§
§new_uninit_bid: BlockId§new_uninit_target: BlockId§drop_bid: BlockId§target_bid: BlockId§payload_loc: StmtLoc§move_loc: StmtLoc§arg_move_loc: StmtLoc§span: Span§payload_elems: Vec<Operand>§elem_ty: Ty§len: Box<ConstantExpr>§uninit_box: Place§branched_before_payload: bool§box_array: Place§box_array_generics: GenericArgs§assume_init_generics: GenericArgs§drop_on_unwind: BlockId§assume_init_target: BlockIdAuto Trait Implementations§
impl Freeze for Rewrite
impl RefUnwindSafe for Rewrite
impl Send for Rewrite
impl Sync for Rewrite
impl Unpin for Rewrite
impl UnsafeUnpin for Rewrite
impl UnwindSafe for Rewrite
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