pub struct TokenParser { /* private fields */ }Implementations§
Source§impl TokenParser
impl TokenParser
pub fn new() -> Self
pub fn supported_languages(&self) -> Vec<&str>
pub fn parse_tokens( &self, text: &str, language_id: &str, offset_encoding: OffsetEncoding, ) -> Result<Vec<TokenInfo>, ParseError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokenParser
impl !RefUnwindSafe for TokenParser
impl Send for TokenParser
impl Sync for TokenParser
impl Unpin for TokenParser
impl UnsafeUnpin for TokenParser
impl !UnwindSafe for TokenParser
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