pub struct Parser<const PROGRAM_SIZE: usize>;
Implementations§
Source§impl<const PROGRAM_SIZE: usize> Parser<PROGRAM_SIZE>
impl<const PROGRAM_SIZE: usize> Parser<PROGRAM_SIZE>
Sourcepub fn parse_file(
source: &str,
) -> Result<HashMap<String, ProgramWithDefines<HashMap<String, i32>, PROGRAM_SIZE>>, ParseError<'_>>
pub fn parse_file( source: &str, ) -> Result<HashMap<String, ProgramWithDefines<HashMap<String, i32>, PROGRAM_SIZE>>, ParseError<'_>>
Parse a PIO “file”, which contains some number of PIO programs
separated by .program
directives.
Sourcepub fn parse_program(
source: &str,
) -> Result<ProgramWithDefines<HashMap<String, i32>, PROGRAM_SIZE>, ParseError<'_>>
pub fn parse_program( source: &str, ) -> Result<ProgramWithDefines<HashMap<String, i32>, PROGRAM_SIZE>, ParseError<'_>>
Parse a single PIO program, without the .program
directive.
Auto Trait Implementations§
impl<const PROGRAM_SIZE: usize> Freeze for Parser<PROGRAM_SIZE>
impl<const PROGRAM_SIZE: usize> RefUnwindSafe for Parser<PROGRAM_SIZE>
impl<const PROGRAM_SIZE: usize> Send for Parser<PROGRAM_SIZE>
impl<const PROGRAM_SIZE: usize> Sync for Parser<PROGRAM_SIZE>
impl<const PROGRAM_SIZE: usize> Unpin for Parser<PROGRAM_SIZE>
impl<const PROGRAM_SIZE: usize> UnwindSafe for Parser<PROGRAM_SIZE>
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