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 whole bunch of scopes at once
without thrashing the lock. It is recommended you 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§
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