pub enum HighlightError {
Parse,
}Expand description
Highlighting failed out loud: no hidden full-text reparse fallback, no swallowed error, no panic — the caller decides what the failure means for its surface.
Variants§
Parse
tree-sitter refused the chunked input (encoding breach or an internal limit). Cached spans and the kept tree stay untouched, so the next call retries from the same state.
Trait Implementations§
Source§impl Clone for HighlightError
impl Clone for HighlightError
Source§fn clone(&self) -> HighlightError
fn clone(&self) -> HighlightError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HighlightError
Source§impl Debug for HighlightError
impl Debug for HighlightError
Source§impl Display for HighlightError
impl Display for HighlightError
impl Eq for HighlightError
Source§impl Error for HighlightError
impl Error for HighlightError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for HighlightError
impl PartialEq for HighlightError
impl StructuralPartialEq for HighlightError
Auto Trait Implementations§
impl Freeze for HighlightError
impl RefUnwindSafe for HighlightError
impl Send for HighlightError
impl Sync for HighlightError
impl Unpin for HighlightError
impl UnsafeUnpin for HighlightError
impl UnwindSafe for HighlightError
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