[][src]Struct syntect::parsing::ScopeRepository

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 Scopes 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

impl Debug for ScopeRepository[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.