pub struct ParserBuilder<'a> { /* private fields */ }Expand description
Implementations§
Source§impl<'a> ParserBuilder<'a>
impl<'a> ParserBuilder<'a>
Sourcepub fn new(allocator: &'a Allocator, source: &'a str) -> Self
pub fn new(allocator: &'a Allocator, source: &'a str) -> Self
Create a parser builder from given source code.
Sourcepub fn options(self, options: ParserOptions) -> Self
pub fn options(self, options: ParserOptions) -> Self
Customize parser options.
Sourcepub fn ignore_comments(self) -> Self
pub fn ignore_comments(self) -> Self
Disable collecting comments.
Collecting comments is disabled by default,
so you don’t need to use this if you never call the comments method.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ParserBuilder<'a>
impl<'a> !Send for ParserBuilder<'a>
impl<'a> !Sync for ParserBuilder<'a>
impl<'a> !UnwindSafe for ParserBuilder<'a>
impl<'a> Freeze for ParserBuilder<'a>
impl<'a> Unpin for ParserBuilder<'a>
impl<'a> UnsafeUnpin for ParserBuilder<'a>
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