[][src]Enum gcode::buffers::SmallFixedBuffers

pub enum SmallFixedBuffers {}

The smallest usable set of Buffers.

let line_size = std::mem::size_of::<Line<'_, SmallFixedBuffers>>();
assert!(line_size <= 350, "Got {}", line_size);

// the explicit type for a `GCode` backed by `SmallFixedBuffers`
type SmallBufferGCode<'a> = GCode<<SmallFixedBuffers as Buffers<'a>>::Arguments>;

let gcode_size = std::mem::size_of::<SmallBufferGCode<'_>>();
assert!(gcode_size  <= 250, "Got {}", gcode_size);

Trait Implementations

impl<'input> Buffers<'input> for SmallFixedBuffers[src]

type Arguments = DefaultArguments

The Buffer used to store GCode arguments.

type Commands = ArrayVec<[GCode<Self::Arguments>; 1]>

The Buffer used to store GCodes.

type Comments = ArrayVec<[Comment<'input>; 1]>

The Buffer used to store Comments.

impl Clone for SmallFixedBuffers[src]

impl Copy for SmallFixedBuffers[src]

impl Debug for SmallFixedBuffers[src]

impl PartialEq<SmallFixedBuffers> for SmallFixedBuffers[src]

impl StructuralPartialEq for SmallFixedBuffers[src]

Auto Trait Implementations

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.