[][src]Struct lyon_tess2::geometry_builder::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>[src]

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

Constructor

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

Constructor

Trait Implementations

impl<OutputVertex, OutputIndex> Clone for VertexBuffers<OutputVertex, OutputIndex> where
    OutputVertex: Clone,
    OutputIndex: Clone
[src]

impl<OutputVertex, OutputIndex> Debug for VertexBuffers<OutputVertex, OutputIndex> where
    OutputVertex: Debug,
    OutputIndex: Debug
[src]

impl<OutputVertex, OutputIndex> Default for VertexBuffers<OutputVertex, OutputIndex> where
    OutputVertex: Default,
    OutputIndex: Default
[src]

Auto Trait Implementations

impl<OutputVertex, OutputIndex> RefUnwindSafe for VertexBuffers<OutputVertex, OutputIndex> where
    OutputIndex: RefUnwindSafe,
    OutputVertex: RefUnwindSafe
[src]

impl<OutputVertex, OutputIndex> Send for VertexBuffers<OutputVertex, OutputIndex> where
    OutputIndex: Send,
    OutputVertex: Send
[src]

impl<OutputVertex, OutputIndex> Sync for VertexBuffers<OutputVertex, OutputIndex> where
    OutputIndex: Sync,
    OutputVertex: Sync
[src]

impl<OutputVertex, OutputIndex> Unpin for VertexBuffers<OutputVertex, OutputIndex> where
    OutputIndex: Unpin,
    OutputVertex: Unpin
[src]

impl<OutputVertex, OutputIndex> UnwindSafe for VertexBuffers<OutputVertex, OutputIndex> where
    OutputIndex: UnwindSafe,
    OutputVertex: UnwindSafe
[src]

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.