pub struct GCodeModel {
pub lines: Vec<GCodeLine>,
pub rel_xyz: bool,
pub rel_e: bool,
pub id_counter: Counter,
}
Expand description
Struct to store all information for a .gcode file, specifically calling out relative vs absolute positioning and extrusion and with a counter to generate line ids
Fields§
§lines: Vec<GCodeLine>
§rel_xyz: bool
§rel_e: bool
§id_counter: Counter
Implementations§
Trait Implementations§
Source§impl Clone for GCodeModel
impl Clone for GCodeModel
Source§fn clone(&self) -> GCodeModel
fn clone(&self) -> GCodeModel
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 Debug for GCodeModel
impl Debug for GCodeModel
Source§impl Default for GCodeModel
impl Default for GCodeModel
Source§fn default() -> GCodeModel
fn default() -> GCodeModel
Returns the “default value” for a type. Read more
Source§impl FromStr for GCodeModel
impl FromStr for GCodeModel
Source§impl PartialEq for GCodeModel
impl PartialEq for GCodeModel
impl Eq for GCodeModel
impl StructuralPartialEq for GCodeModel
Auto Trait Implementations§
impl Freeze for GCodeModel
impl RefUnwindSafe for GCodeModel
impl Send for GCodeModel
impl Sync for GCodeModel
impl Unpin for GCodeModel
impl UnwindSafe for GCodeModel
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