pub struct FunctionScopes { /* private fields */ }Expand description
A collection of function scopes.
Implementations§
Source§impl FunctionScopes
impl FunctionScopes
Sourcepub fn function_scope(&self) -> &Scope
pub fn function_scope(&self) -> &Scope
Returns the function scope for this function.
Sourcepub fn arguments_object_accessed(&self) -> bool
pub fn arguments_object_accessed(&self) -> bool
Returns if the arguments object is accessed in this function.
Sourcepub fn requires_function_scope(&self) -> bool
pub fn requires_function_scope(&self) -> bool
Check if the creation of the function scope is required.
Sourcepub fn parameters_eval_scope(&self) -> Option<&Scope>
pub fn parameters_eval_scope(&self) -> Option<&Scope>
Returns the parameters eval scope for this function.
Sourcepub fn parameters_scope(&self) -> Option<&Scope>
pub fn parameters_scope(&self) -> Option<&Scope>
Returns the parameters scope for this function.
Sourcepub fn lexical_scope(&self) -> Option<&Scope>
pub fn lexical_scope(&self) -> Option<&Scope>
Returns the lexical scope for this function.
Sourcepub fn parameter_scope(&self) -> Scope
pub fn parameter_scope(&self) -> Scope
Returns the effective parameter scope for this function.
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for FunctionScopes
Available on crate feature arbitrary only.
impl<'a> Arbitrary<'a> for FunctionScopes
Available on crate feature
arbitrary only.Source§fn arbitrary(_u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(_u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for FunctionScopes
impl Clone for FunctionScopes
Source§fn clone(&self) -> FunctionScopes
fn clone(&self) -> FunctionScopes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionScopes
impl Debug for FunctionScopes
Source§impl Default for FunctionScopes
impl Default for FunctionScopes
Source§fn default() -> FunctionScopes
fn default() -> FunctionScopes
Returns the “default value” for a type. Read more
Source§impl PartialEq for FunctionScopes
impl PartialEq for FunctionScopes
impl StructuralPartialEq for FunctionScopes
Auto Trait Implementations§
impl !RefUnwindSafe for FunctionScopes
impl !Send for FunctionScopes
impl !Sync for FunctionScopes
impl !UnwindSafe for FunctionScopes
impl Freeze for FunctionScopes
impl Unpin for FunctionScopes
impl UnsafeUnpin for FunctionScopes
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