[−][src]Struct syntect::parsing::ScopeRepository
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
impl ScopeRepository
[src]
pub fn build(&mut self, s: &str) -> Result<Scope, ParseScopeError>
[src]
pub fn to_string(&self, scope: Scope) -> String
[src]
pub fn atom_str(&self, atom_number: u16) -> &str
[src]
Return the string for an atom number returned by Scope#atom_at
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,