pub struct CallStack<I> { /* private fields */ }
Expand description

Represents a call stack and its associated locals.

Implementations

Returns true if the stack is empty.

Gets the number of frames in the stack.

Removes the topmost frame from the stack and returns it.

Adds a frame to the top of the stack.

Returns a mutable reference to the topmost frame in the stack.

Returns a mutable reference to the frame depth frames below the top of the stack.

Returns a reference to the frame depth frames below the top of the stack.

Returna reference to the topmost frame in the stack.

Generates a stack trace string from the current state of the stack.

Sets a variable’s value using the specified access type.

Gets a variable’s value using the specified access type.

Gets a mutable reference to a variable.

Defines a local variable of the specified name.

Notes

This function does not perform any identifier validation.

Defines a variable of the specified name by-value.

Notes

This function does not perform any identifier validation.

Scans (“tastes”) the stack from the top looking for the first occurrence of the specified frame flavor. Returns the top-relative index of the first occurrence, or None if no match was found or a stronger flavor was found first.

Scans (“tastes”) the stack from the top looking for the first occurrence of the specified frame flavor. Returns the top-relative index of the first occurrence, or None if no match was found or another flavor was found first.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.