Struct maker_panel::VertexBuffers[]

pub struct VertexBuffers<OutputVertex, OutputIndex> {
    pub vertices: Vec<OutputVertex, Global>,
    pub indices: Vec<OutputIndex, Global>,
}

Structure that holds the vertex and index data.

Usually written into though temporary BuffersBuilder objects.

Fields

vertices: Vec<OutputVertex, Global>indices: Vec<OutputIndex, Global>

Implementations

impl<OutputVertex, OutputIndex> VertexBuffers<OutputVertex, OutputIndex>

pub fn new() -> VertexBuffers<OutputVertex, OutputIndex>

Constructor

pub fn with_capacity(
    num_vertices: usize,
    num_indices: usize
) -> VertexBuffers<OutputVertex, OutputIndex>

Constructor

Trait Implementations

impl<OutputVertex, OutputIndex> Clone for VertexBuffers<OutputVertex, OutputIndex> where
    OutputVertex: Clone,
    OutputIndex: Clone

impl<OutputVertex, OutputIndex> Debug for VertexBuffers<OutputVertex, OutputIndex> where
    OutputVertex: Debug,
    OutputIndex: Debug

impl<OutputVertex, OutputIndex> Default for VertexBuffers<OutputVertex, OutputIndex> where
    OutputVertex: Default,
    OutputIndex: Default

Auto Trait Implementations

impl<OutputVertex, OutputIndex> RefUnwindSafe for VertexBuffers<OutputVertex, OutputIndex> where
    OutputIndex: RefUnwindSafe,
    OutputVertex: RefUnwindSafe

impl<OutputVertex, OutputIndex> Send for VertexBuffers<OutputVertex, OutputIndex> where
    OutputIndex: Send,
    OutputVertex: Send

impl<OutputVertex, OutputIndex> Sync for VertexBuffers<OutputVertex, OutputIndex> where
    OutputIndex: Sync,
    OutputVertex: Sync

impl<OutputVertex, OutputIndex> Unpin for VertexBuffers<OutputVertex, OutputIndex> where
    OutputIndex: Unpin,
    OutputVertex: Unpin

impl<OutputVertex, OutputIndex> UnwindSafe for VertexBuffers<OutputVertex, OutputIndex> where
    OutputIndex: UnwindSafe,
    OutputVertex: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme
[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme
[src]

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T, Dst> ConvAsUtil<Dst> for T[src]

impl<T> ConvUtil for T[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<Src> TryFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

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<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 
[src]

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

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.

impl<Src> ValueFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 
[src]

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.