Struct rustfmt_nightly::parse::parser::ParserBuilder
source · pub(crate) struct ParserBuilder<'a> {
sess: Option<&'a ParseSess>,
input: Option<Input>,
}
Expand description
A builder for the Parser
.
Fields§
§sess: Option<&'a ParseSess>
§input: Option<Input>
Implementations§
source§impl<'a> ParserBuilder<'a>
impl<'a> ParserBuilder<'a>
pub(crate) fn input(self, input: Input) -> ParserBuilder<'a>
pub(crate) fn sess(self, sess: &'a ParseSess) -> ParserBuilder<'a>
pub(crate) fn build(self) -> Result<Parser<'a>, ParserError>
fn parser( sess: &'a ParseSess, input: Input ) -> Result<Parser<'a>, Option<Vec<Diagnostic>>>
Trait Implementations§
source§impl<'a> Default for ParserBuilder<'a>
impl<'a> Default for ParserBuilder<'a>
source§fn default() -> ParserBuilder<'a>
fn default() -> ParserBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ParserBuilder<'a>
impl<'a> !Send for ParserBuilder<'a>
impl<'a> !Sync for ParserBuilder<'a>
impl<'a> Unpin for ParserBuilder<'a>
impl<'a> !UnwindSafe 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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes