pub struct LayerToolpath {
pub z_mm: f32,
pub segments: Vec<ToolpathSegment>,
}Expand description
Every extrusion move of one layer, in file order.
Fields§
§z_mm: f32The layer’s height, from its ;Z:; 0 when the file states none.
segments: Vec<ToolpathSegment>Its segments.
Implementations§
Source§impl LayerToolpath
impl LayerToolpath
Sourcepub fn carries_object_extrusion(&self) -> bool
pub fn carries_object_extrusion(&self) -> bool
Whether any segment is object extrusion: anything but supports, as
GcodeIndex::object_layer_at_or_below reads it, so an Other segment
(skirt, brim or custom G-code) counts.
Trait Implementations§
Source§impl Clone for LayerToolpath
impl Clone for LayerToolpath
Source§impl Debug for LayerToolpath
impl Debug for LayerToolpath
Source§impl PartialEq for LayerToolpath
impl PartialEq for LayerToolpath
impl StructuralPartialEq for LayerToolpath
Auto Trait Implementations§
impl Forget for LayerToolpath
impl Freeze for LayerToolpath
impl Move for LayerToolpath
impl RefUnwindSafe for LayerToolpath
impl Send for LayerToolpath
impl Sync for LayerToolpath
impl Unpin for LayerToolpath
impl UnsafeUnpin for LayerToolpath
impl UnwindSafe for LayerToolpath
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