pub struct ParserBuilder<'cmt, 's: 'cmt> { /* private fields */ }Expand description
Implementations§
Source§impl<'cmt, 's: 'cmt> ParserBuilder<'cmt, 's>
impl<'cmt, 's: 'cmt> ParserBuilder<'cmt, 's>
Sourcepub fn options(self, options: ParserOptions) -> Self
pub fn options(self, options: ParserOptions) -> Self
Customize parser options.
Sourcepub fn comments(self, comments: &'cmt mut Vec<Comment<'s>>) -> Self
pub fn comments(self, comments: &'cmt mut Vec<Comment<'s>>) -> Self
Collect comments and put them into the given collection.
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<'cmt, 's> Freeze for ParserBuilder<'cmt, 's>
impl<'cmt, 's> RefUnwindSafe for ParserBuilder<'cmt, 's>
impl<'cmt, 's> Send for ParserBuilder<'cmt, 's>
impl<'cmt, 's> Sync for ParserBuilder<'cmt, 's>
impl<'cmt, 's> Unpin for ParserBuilder<'cmt, 's>
impl<'cmt, 's> !UnwindSafe for ParserBuilder<'cmt, 's>
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