Struct colain::CLI[][src]

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

Light abstraction over a CLI file

Implementations

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

pub fn new(raw: &'a [u8]) -> Result<Self, Error>[src]

Takes a buffer containing the .cli file and finds all the offsets to each geometry section.

See crate level documentation for usage.

pub fn header(&self) -> &Header[src]

Get file metadata

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

Iterate over each layer in the file

Auto Trait Implementations

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

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

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

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

impl<'a, T> UnwindSafe for CLI<'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, 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.