pub struct RustTokenizer {
pub comment_single: bool,
pub comment_depth: usize,
pub in_string: bool,
}
Fields§
§comment_single: bool
§comment_depth: usize
§in_string: bool
Implementations§
Source§impl RustTokenizer
impl RustTokenizer
pub fn new() -> RustTokenizer
pub fn next_token<'a>( &mut self, state: &mut TokenizerState<'a>, chunk: &mut Vec<char>, token_chunks: &Vec<TokenChunk>, ) -> TokenType
pub fn auto_format( text_buffer: &mut TextBuffer, force_newlines: bool, ) -> FormatOutput
Auto Trait Implementations§
impl Freeze for RustTokenizer
impl RefUnwindSafe for RustTokenizer
impl Send for RustTokenizer
impl Sync for RustTokenizer
impl Unpin for RustTokenizer
impl UnwindSafe for RustTokenizer
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