pub struct Nop;Expand description
A set of callbacks that ignore any errors that occur.
Trait Implementations§
Source§impl Callbacks for Nop
impl Callbacks for Nop
Source§fn unknown_content(&mut self, _text: &str, _span: Span)
fn unknown_content(&mut self, _text: &str, _span: Span)
The parser encountered some text it wasn’t able to make sense of.
Source§fn gcode_buffer_overflowed(
&mut self,
_mnemonic: Mnemonic,
_major_number: u32,
_minor_number: u32,
_arguments: &[Word],
_span: Span,
)
fn gcode_buffer_overflowed( &mut self, _mnemonic: Mnemonic, _major_number: u32, _minor_number: u32, _arguments: &[Word], _span: Span, )
The
Buffers::Commands buffer had insufficient capacity when trying
to add a GCode.Source§fn gcode_argument_buffer_overflowed(
&mut self,
_mnemonic: Mnemonic,
_major_number: u32,
_minor_number: u32,
_argument: Word,
)
fn gcode_argument_buffer_overflowed( &mut self, _mnemonic: Mnemonic, _major_number: u32, _minor_number: u32, _argument: Word, )
Source§fn comment_buffer_overflow(&mut self, _comment: Comment<'_>)
fn comment_buffer_overflow(&mut self, _comment: Comment<'_>)
A
Comment was encountered, but there wasn’t enough room in
Buffers::Comments.Source§fn unexpected_line_number(&mut self, _line_number: f32, _span: Span)
fn unexpected_line_number(&mut self, _line_number: f32, _span: Span)
A line number was encountered when it wasn’t expected.
Source§fn argument_without_a_command(
&mut self,
_letter: char,
_value: f32,
_span: Span,
)
fn argument_without_a_command( &mut self, _letter: char, _value: f32, _span: Span, )
An argument was found, but the parser couldn’t figure out which
GCode it corresponds to.impl Copy for Nop
impl StructuralPartialEq for Nop
Auto Trait Implementations§
impl Freeze for Nop
impl RefUnwindSafe for Nop
impl Send for Nop
impl Sync for Nop
impl Unpin for Nop
impl UnsafeUnpin for Nop
impl UnwindSafe for Nop
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