Struct colain::clitype::ShortCLI [−][src]
Configures the parser to use the short version of the CLI spec.
In this version coordinates are stored as u16
and metadata
(ID, direction, etc.) are stored as u16
.
Trait Implementations
impl CLIType for ShortCLI
[src]
type Meta = u16
Primitive type used to store metadata such as id, direction, etc. Read more
type Coord = u16
Primitive type used to store coordinates Read more
const CMD_LAYER: u16
[src]
const CMD_PLINE: u16
[src]
const CMD_HATCH: u16
[src]
fn get_meta(buf: &mut &[u8], aligned: bool) -> Self::Meta
[src]
fn get_coord(buf: &mut &[u8], aligned: bool) -> Self::Coord
[src]
fn get_usize(buf: &mut &[u8], aligned: bool) -> usize
[src]
impl Debug for ShortCLI
[src]
Auto Trait Implementations
impl RefUnwindSafe for ShortCLI
impl Send for ShortCLI
impl Sync for ShortCLI
impl Unpin for ShortCLI
impl UnwindSafe for ShortCLI
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,