pub struct LeoInputParser;
Implementations§
Source§impl LeoInputParser
impl LeoInputParser
Sourcepub fn load_file(file_path: &Path) -> Result<String, InputParserError>
pub fn load_file(file_path: &Path) -> Result<String, InputParserError>
Reads in the given file path into a string.
Sourcepub fn parse_file(input_file: &str) -> Result<File<'_>, InputParserError>
pub fn parse_file(input_file: &str) -> Result<File<'_>, InputParserError>
Parses the input file and constructs a syntax tree.
Auto Trait Implementations§
impl Freeze for LeoInputParser
impl RefUnwindSafe for LeoInputParser
impl Send for LeoInputParser
impl Sync for LeoInputParser
impl Unpin for LeoInputParser
impl UnwindSafe for LeoInputParser
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