pub struct TSHighlighter {
pub languages: HashMap<String, (Option<Regex>, HighlightConfiguration)>,
pub attribute_strings: Vec<&'static [u8]>,
pub highlight_names: Vec<String>,
pub carriage_return_index: Option<usize>,
}
Fields§
§languages: HashMap<String, (Option<Regex>, HighlightConfiguration)>
§attribute_strings: Vec<&'static [u8]>
§highlight_names: Vec<String>
§carriage_return_index: Option<usize>
Auto Trait Implementations§
impl Freeze for TSHighlighter
impl RefUnwindSafe for TSHighlighter
impl Send for TSHighlighter
impl Sync for TSHighlighter
impl Unpin for TSHighlighter
impl UnwindSafe for TSHighlighter
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