pub struct LayerProgress {
pub sent_mm: f64,
pub total_mm: f64,
pub kinds_sent: Vec<ExtrusionKind>,
pub kinds_left: Vec<ExtrusionKind>,
}Expand description
How far a job is through one layer’s toolpath.
Fields§
§sent_mm: f64The path length of the segments sent, in millimetres.
total_mm: f64The path length of every segment of the layer.
kinds_sent: Vec<ExtrusionKind>The kinds any sent segment lays, in the order the layer first lays them.
kinds_left: Vec<ExtrusionKind>The kinds any segment still to send lays, in the same order: a kind part-way through is in both.
Implementations§
Source§impl LayerProgress
impl LayerProgress
Sourcepub fn percent_sent(&self) -> u32
pub fn percent_sent(&self) -> u32
The share of the layer’s path length sent, in whole percent; 0 for a layer that lays nothing.
Trait Implementations§
Source§impl Clone for LayerProgress
impl Clone for LayerProgress
Source§impl Debug for LayerProgress
impl Debug for LayerProgress
Source§impl Default for LayerProgress
impl Default for LayerProgress
Source§impl PartialEq for LayerProgress
impl PartialEq for LayerProgress
impl StructuralPartialEq for LayerProgress
Auto Trait Implementations§
impl Forget for LayerProgress
impl Freeze for LayerProgress
impl Move for LayerProgress
impl RefUnwindSafe for LayerProgress
impl Send for LayerProgresswhere
RawVecInner: Send,
impl Sync for LayerProgresswhere
RawVecInner: Sync,
impl Unpin for LayerProgress
impl UnsafeUnpin for LayerProgress
impl UnwindSafe for LayerProgresswhere
RawVecInner: UnwindSafe,
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