Struct syntect::parsing::ScopeRepository
source · [−]pub struct ScopeRepository { /* private fields */ }
Expand description
The structure used to keep track of the mapping between scope atom numbers and their string names
It is only exposed in case you want to lock SCOPE_REPO
and then allocate a bunch of scopes
at once without thrashing the lock. In general, you should just use Scope::new()
.
Only Scope
s created by the same repository have valid comparison results.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ScopeRepository
impl Send for ScopeRepository
impl Sync for ScopeRepository
impl Unpin for ScopeRepository
impl UnwindSafe for ScopeRepository
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