Enum syntect::parsing::ScopeStackOp
source · pub enum ScopeStackOp {
Push(Scope),
Pop(usize),
Clear(ClearAmount),
Restore,
Noop,
}
Expand description
A change to a scope stack. Generally Noop
is only used internally and you don’t have
to worry about ever getting one back from a public function.
Use ScopeStack#apply
to apply this change.
Variants§
Push(Scope)
Pop(usize)
Clear(ClearAmount)
used for the clear_scopes feature
Restore
restores cleared scopes
Noop
Trait Implementations§
source§impl Clone for ScopeStackOp
impl Clone for ScopeStackOp
source§fn clone(&self) -> ScopeStackOp
fn clone(&self) -> ScopeStackOp
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 Debug for ScopeStackOp
impl Debug for ScopeStackOp
source§impl PartialEq for ScopeStackOp
impl PartialEq for ScopeStackOp
source§fn eq(&self, other: &ScopeStackOp) -> bool
fn eq(&self, other: &ScopeStackOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ScopeStackOp
impl StructuralPartialEq for ScopeStackOp
Auto Trait Implementations§
impl RefUnwindSafe for ScopeStackOp
impl Send for ScopeStackOp
impl Sync for ScopeStackOp
impl Unpin for ScopeStackOp
impl UnwindSafe for ScopeStackOp
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