pub struct Parser<'content> { /* private fields */ }
Expand description
A combined parser for the legacy and TOML toolchain file formats.
Implementations§
Source§impl<'content> Parser<'content>
impl<'content> Parser<'content>
pub fn new(content: &'content str, parse_option: ParseStrategy) -> Self
Source§impl Parser<'_>
impl Parser<'_>
pub fn parse(&self) -> Result<ToolchainFile, ParserError>
Auto Trait Implementations§
impl<'content> Freeze for Parser<'content>
impl<'content> RefUnwindSafe for Parser<'content>
impl<'content> Send for Parser<'content>
impl<'content> Sync for Parser<'content>
impl<'content> Unpin for Parser<'content>
impl<'content> UnwindSafe for Parser<'content>
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