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 won’t need to worry about getting one back
from calling a public function.
The change from a ScopeStackOp
can be applied via ScopeStack::apply
.
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<ScopeStackOp> for ScopeStackOp
impl PartialEq<ScopeStackOp> 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 StructuralEq 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.