pub struct GCodeBlock<'a> {
pub header: BlockHeader,
pub param: Param,
pub data: &'a [u8],
/* private fields */
}
Expand description
A wrapper for a series of gcode commands.
also wraps header, encoding and checksum
Fields§
§header: BlockHeader
Header
param: Param
Param the data’s encoding.
data: &'a [u8]
A series of gcode commands
Trait Implementations§
Source§impl<'a> Clone for GCodeBlock<'a>
impl<'a> Clone for GCodeBlock<'a>
Source§fn clone(&self) -> GCodeBlock<'a>
fn clone(&self) -> GCodeBlock<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for GCodeBlock<'a>
impl<'a> Debug for GCodeBlock<'a>
Source§impl<'a> Default for GCodeBlock<'a>
impl<'a> Default for GCodeBlock<'a>
Source§fn default() -> GCodeBlock<'a>
fn default() -> GCodeBlock<'a>
Returns the “default value” for a type. Read more
Source§impl Display for GCodeBlock<'_>
impl Display for GCodeBlock<'_>
Source§impl<'a> PartialEq for GCodeBlock<'a>
impl<'a> PartialEq for GCodeBlock<'a>
impl<'a> Eq for GCodeBlock<'a>
impl<'a> StructuralPartialEq for GCodeBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for GCodeBlock<'a>
impl<'a> RefUnwindSafe for GCodeBlock<'a>
impl<'a> Send for GCodeBlock<'a>
impl<'a> Sync for GCodeBlock<'a>
impl<'a> Unpin for GCodeBlock<'a>
impl<'a> UnwindSafe for GCodeBlock<'a>
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