Struct nu_protocol::engine::StateDelta
source · [−]pub struct StateDelta {
pub blocks: Vec<Block>,
pub scope: Vec<ScopeFrame>,
/* private fields */
}Expand description
A delta (or change set) between the current global state and a possible future global state. Deltas can be applied to the global state to update it to contain both previous state and the state held within the delta.
Fields
blocks: Vec<Block>scope: Vec<ScopeFrame>Implementations
sourceimpl StateDelta
impl StateDelta
pub fn new() -> Self
pub fn num_files(&self) -> usize
pub fn num_decls(&self) -> usize
pub fn num_aliases(&self) -> usize
pub fn num_blocks(&self) -> usize
pub fn num_overlays(&self) -> usize
pub fn enter_scope(&mut self)
pub fn exit_scope(&mut self)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for StateDelta
impl Send for StateDelta
impl Sync for StateDelta
impl Unpin for StateDelta
impl !UnwindSafe for StateDelta
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more