pub struct Parser<const OSC_RAW_BUF_SIZE: usize = MAX_OSC_RAW> { /* private fields */ }
Expand description
Parser for raw VTE protocol which delegates actions to a Perform
Generic over the value for the size of the raw Operating System Command
buffer. Only used when the no_std
feature is enabled.
Implementations§
source§impl<const OSC_RAW_BUF_SIZE: usize> Parser<OSC_RAW_BUF_SIZE>
impl<const OSC_RAW_BUF_SIZE: usize> Parser<OSC_RAW_BUF_SIZE>
sourcepub fn new_with_size() -> Parser<OSC_RAW_BUF_SIZE>
pub fn new_with_size() -> Parser<OSC_RAW_BUF_SIZE>
Create a new Parser with a custom size for the Operating System Command buffer.
Call with a const-generic param on Parser
, like:
let mut p = copa::Parser::<64>::new_with_size();
Trait Implementations§
Auto Trait Implementations§
impl<const OSC_RAW_BUF_SIZE: usize> RefUnwindSafe for Parser<OSC_RAW_BUF_SIZE>
impl<const OSC_RAW_BUF_SIZE: usize> Send for Parser<OSC_RAW_BUF_SIZE>
impl<const OSC_RAW_BUF_SIZE: usize> Sync for Parser<OSC_RAW_BUF_SIZE>
impl<const OSC_RAW_BUF_SIZE: usize> Unpin for Parser<OSC_RAW_BUF_SIZE>
impl<const OSC_RAW_BUF_SIZE: usize> UnwindSafe for Parser<OSC_RAW_BUF_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