Struct rust_toolchain_file::toml::Parser
source · [−]pub struct Parser<'content> { /* private fields */ }
Expand description
A parser for the TOML based toolchain file format.
Implementations
sourceimpl<'content> Parser<'content>
impl<'content> Parser<'content>
sourcepub fn from_slice(content: &'content [u8]) -> Self
pub fn from_slice(content: &'content [u8]) -> Self
Initialize a parser.
sourceimpl Parser<'_>
impl Parser<'_>
pub fn parse(&self) -> Result<RustToolchainToml, 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