Enum syntect::parsing::ParseScopeError
source · pub enum ParseScopeError {
TooLong,
TooManyAtoms,
}
Expand description
Not all strings are valid scopes
Variants§
TooLong
Due to a limitation of the current optimized internal representation scopes can be at most 8 atoms long
TooManyAtoms
The internal representation uses 16 bits per atom, so if all scopes ever used by the program have more than 2^16-2 atoms, things break
Trait Implementations§
source§impl Debug for ParseScopeError
impl Debug for ParseScopeError
source§impl From<ParseScopeError> for ParseThemeError
impl From<ParseScopeError> for ParseThemeError
source§fn from(error: ParseScopeError) -> ParseThemeError
fn from(error: ParseScopeError) -> ParseThemeError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ParseScopeError
impl Send for ParseScopeError
impl Sync for ParseScopeError
impl Unpin for ParseScopeError
impl UnwindSafe for ParseScopeError
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