Struct colain::Hatches[][src]

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

Collection of hatches inside a Layer

Each hatch is a line segment with a start and end point the Segment trait is provided as an abstraction layer over the internal storage of each segment which is [T; 4]

Implementations

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

pub fn iter(&'a self) -> ArrayChunks<'a, <T as CLIType>::Coord, 4>[src]

Iterate over hatches as segments

Note availability of Segment trait for a cleaner interface

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

Get the CLI ID of this primitive

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

Pointer into the segment of the file that contains this geometry. The array should consist of sets of 2 points where each point consists of an X element then a Y element.

Trait Implementations

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

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

Auto Trait Implementations

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

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

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

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

impl<'a, T> UnwindSafe for Hatches<'a, T> where
    <T as CLIType>::Coord: RefUnwindSafe,
    <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.