Struct colain::clitype::LongCLI [−][src]
Configures the parser to use the long version of the CLI spec.
In this version coordinates are stored as f32
and metadata
(ID, direction, etc.) are stored as i32
.
Trait Implementations
impl CLIType for LongCLI
[src]
type Meta = i32
Primitive type used to store metadata such as id, direction, etc. Read more
type Coord = f32
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 LongCLI
[src]
Auto Trait Implementations
impl RefUnwindSafe for LongCLI
impl Send for LongCLI
impl Sync for LongCLI
impl Unpin for LongCLI
impl UnwindSafe for LongCLI
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>,