pub struct Variables { /* private fields */ }Implementations§
Source§impl Variables
impl Variables
pub fn new() -> Self
pub fn new_binding(&mut self, expr: Expr, span: Span) -> Binding
pub fn new_binding_no_span(&mut self, expr: Expr) -> Binding
pub fn new_name(&mut self) -> Name
pub fn new_var_name(&mut self, name: &Name) -> Name
pub fn push_context(&mut self) -> ContextNames
pub fn push_absent_context(&mut self)
pub fn pop_context(&mut self)
pub fn explicit_context_names(&mut self, name: Name) -> ContextNames
pub fn var_ref(&mut self, name: &Name, span: Span) -> SpannedResult<Bindings>
pub fn current_context_names(&self) -> Option<ContextNames>
pub fn context_item(&mut self, span: Span) -> SpannedResult<Bindings>
pub fn fn_position(&mut self, span: Span) -> SpannedResult<Bindings>
pub fn fn_last(&mut self, span: Span) -> SpannedResult<Bindings>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Variables
impl RefUnwindSafe for Variables
impl Send for Variables
impl Sync for Variables
impl Unpin for Variables
impl UnwindSafe for Variables
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
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