Struct syntect::parsing::ScopeRepository
[−]
[src]
pub struct ScopeRepository { /* fields omitted */ }
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.
Methods
impl ScopeRepository
[src]
fn build(&mut self, s: &str) -> Result<Scope, ParseScopeError>
fn to_string(&self, scope: Scope) -> String
fn atom_str(&self, atom_number: u16) -> &str
Return the string for an atom number returned by Scope#atom_at