Struct rust_toolchain_file::Parser
source · [−]pub struct Parser<'content> { /* private fields */ }
Expand description
A combined parser for the legacy and TOML toolchain file formats.
Implementations
sourceimpl<'content> Parser<'content>
impl<'content> Parser<'content>
pub fn new(content: &'content str, parse_option: ParseStrategy) -> Self
sourceimpl Parser<'_>
impl Parser<'_>
pub fn parse(&self) -> Result<ToolchainFile, ParserError>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more