pub struct UllbcStatementTransformCtx<'a> {
    pub ctx: &'a mut TransformCtx,
    pub params: &'a GenericParams,
    pub locals: &'a mut Locals,
    pub span: Span,
    pub statements: Vec<Statement>,
}Fields§
§ctx: &'a mut TransformCtx§params: &'a GenericParams§locals: &'a mut Locals§span: SpanSpan of the statement being explored
statements: Vec<Statement>Statements to prepend to the statement currently being explored.
Implementations§
Source§impl<'a> UllbcStatementTransformCtx<'a>
 
impl<'a> UllbcStatementTransformCtx<'a>
Trait Implementations§
Source§impl BodyTransformCtx for UllbcStatementTransformCtx<'_>
 
impl BodyTransformCtx for UllbcStatementTransformCtx<'_>
fn get_ctx(&self) -> &TransformCtx
fn get_params(&self) -> &GenericParams
fn get_locals_mut(&mut self) -> &mut Locals
fn insert_storage_live_stmt(&mut self, local: LocalId)
fn insert_assn_stmt(&mut self, place: Place, rvalue: Rvalue)
fn insert_storage_dead_stmt(&mut self, local: LocalId)
Source§fn fresh_var(&mut self, name: Option<String>, ty: Ty) -> Place
 
fn fresh_var(&mut self, name: Option<String>, ty: Ty) -> Place
Create a local & return the place pointing to it
Source§fn compute_subslice_end_idx(
    &mut self,
    len_place: &Place,
    last_arg: Operand,
    from_end: bool,
) -> Operand
 
fn compute_subslice_end_idx( &mut self, len_place: &Place, last_arg: Operand, from_end: bool, ) -> Operand
When 
from_end is true, we need to compute len(p) - last_arg instead of just using last_arg.
Otherwise, we simply return last_arg.
New local variables are created as needed. Read morefn is_sized_type_var(&mut self, ty: &Ty) -> bool
Source§fn compute_place_metadata(&mut self, place: &Place) -> Operand
 
fn compute_place_metadata(&mut self, place: &Place) -> Operand
Emit statements that compute the metadata of the given place. Returns an operand containing the
metadata value.
Auto Trait Implementations§
impl<'a> Freeze for UllbcStatementTransformCtx<'a>
impl<'a> !RefUnwindSafe for UllbcStatementTransformCtx<'a>
impl<'a> Send for UllbcStatementTransformCtx<'a>
impl<'a> !Sync for UllbcStatementTransformCtx<'a>
impl<'a> Unpin for UllbcStatementTransformCtx<'a>
impl<'a> !UnwindSafe for UllbcStatementTransformCtx<'a>
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