Struct rhai::VarDefInfo
source · pub struct VarDefInfo<'a> { /* private fields */ }
Expand description
Information on a variable definition.
Implementations§
source§impl<'a> VarDefInfo<'a>
impl<'a> VarDefInfo<'a>
sourcepub const fn nesting_level(&self) -> usize
pub const fn nesting_level(&self) -> usize
The current nesting level, with zero being the global level.
sourcepub const fn will_shadow_other_variables(&self) -> bool
pub const fn will_shadow_other_variables(&self) -> bool
Will the variable shadow an existing variable?
Trait Implementations§
source§impl<'a> Clone for VarDefInfo<'a>
impl<'a> Clone for VarDefInfo<'a>
source§fn clone(&self) -> VarDefInfo<'a>
fn clone(&self) -> VarDefInfo<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for VarDefInfo<'a>
impl<'a> Debug for VarDefInfo<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for VarDefInfo<'a>
impl<'a> Send for VarDefInfo<'a>
impl<'a> Sync for VarDefInfo<'a>
impl<'a> Unpin for VarDefInfo<'a>
impl<'a> UnwindSafe for VarDefInfo<'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