Struct colain::Layer[][src]

pub struct Layer<'a, T: CLIType> { /* fields omitted */ }

Represents a layer of a 3D object

Implementations

impl<'a, T: CLIType> Layer<'a, T>[src]

pub fn iter_loops(&'a self) -> Iter<'a, Loop<'a, T>>[src]

Iterator over each loop in the layer

pub fn iter_hatches(&'a self) -> Iter<'a, Hatches<'a, T>>[src]

Iterator over each set of hatches in the layer

pub fn height(&self) -> <T as CLIType>::Coord[src]

Get the height of the layer relative to the bottom of the part. Note that layer thickness is not encoded in the CLI format, it must be calculated from the height delta between two slices.

Trait Implementations

impl<'a, T: Clone + CLIType> Clone for Layer<'a, T>[src]

impl<'a, T: Debug + CLIType> Debug for Layer<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for Layer<'a, T> where
    <T as CLIType>::Coord: RefUnwindSafe,
    <T as CLIType>::Meta: RefUnwindSafe

impl<'a, T> Send for Layer<'a, T> where
    <T as CLIType>::Coord: Send + Sync,
    <T as CLIType>::Meta: Send

impl<'a, T> Sync for Layer<'a, T> where
    <T as CLIType>::Coord: Sync,
    <T as CLIType>::Meta: Sync

impl<'a, T> Unpin for Layer<'a, T> where
    <T as CLIType>::Coord: Unpin,
    <T as CLIType>::Meta: Unpin

impl<'a, T> UnwindSafe for Layer<'a, T> where
    <T as CLIType>::Coord: RefUnwindSafe + UnwindSafe,
    <T as CLIType>::Meta: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.