Struct pio_parser::Parser
source · [−]pub struct Parser<const PROGRAM_SIZE: usize>;Implementations
sourceimpl<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> 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
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