pub enum ExtrusionKind {
Wall,
SparseInfill,
SolidInfill,
TopSolidInfill,
Support,
Bridge,
Overhang,
Other,
}Expand description
What a toolpath segment lays, from PrusaSlicer’s ;TYPE: label.
Variants§
Wall
External perimeter and Perimeter.
SparseInfill
Internal infill: the sparse pattern inside the part.
SolidInfill
Solid infill and Gap fill: solid layers inside the part, and the
gaps between its walls.
TopSolidInfill
Top solid infill: the part’s top surface at this layer.
Support
Support material and Support material interface.
Bridge
Bridge infill.
Overhang
Overhang perimeter.
Other
Anything else: the skirt or brim, the slicer’s own start and end G-code, or an unlabelled move.
Implementations§
Source§impl ExtrusionKind
impl ExtrusionKind
Sourcepub const fn is_support(self) -> bool
pub const fn is_support(self) -> bool
Whether this kind holds the part up rather than making it.
Sourcepub const fn is_infill(self) -> bool
pub const fn is_infill(self) -> bool
Whether this kind fills the part’s inside: sparse, solid or top solid infill.
Sourcepub const fn name(self) -> &'static str
pub const fn name(self) -> &'static str
What a person calls it, as the check image’s text and a turn’s line name it.
Sourcepub const fn short_name(self) -> &'static str
pub const fn short_name(self) -> &'static str
The kind as the check image’s colour key names it.
Trait Implementations§
Source§impl Clone for ExtrusionKind
impl Clone for ExtrusionKind
impl Copy for ExtrusionKind
Source§impl Debug for ExtrusionKind
impl Debug for ExtrusionKind
impl Eq for ExtrusionKind
Source§impl Hash for ExtrusionKind
impl Hash for ExtrusionKind
Source§impl PartialEq for ExtrusionKind
impl PartialEq for ExtrusionKind
impl StructuralPartialEq for ExtrusionKind
Auto Trait Implementations§
impl Forget for ExtrusionKind
impl Freeze for ExtrusionKind
impl Move for ExtrusionKind
impl RefUnwindSafe for ExtrusionKind
impl Send for ExtrusionKind
impl Sync for ExtrusionKind
impl Unpin for ExtrusionKind
impl UnsafeUnpin for ExtrusionKind
impl UnwindSafe for ExtrusionKind
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