Struct solstice_2d::Vertex2D[][src]

pub struct Vertex2D { pub position: [f32; 2], pub color: [f32; 4], pub uv: [f32; 2], }


position: [f32; 2]color: [f32; 4]uv: [f32; 2]


impl Vertex2D[src]

pub fn new(position: [f32; 2], color: [f32; 4], uv: [f32; 2]) -> Self[src]

pub fn position(&self) -> &[f32; 2][src]

Trait Implementations

impl Clone for Vertex2D[src]

impl Copy for Vertex2D[src]

impl Debug for Vertex2D[src]

impl Default for Vertex2D[src]

impl<'a, G> Draw<Vertex2D, G> for DrawList<'a> where
    G: GeometryKind<'a, Vertex2D> + 'a, 

impl From<(f32, f32)> for Vertex2D[src]

impl From<(f64, f64)> for Vertex2D[src]

impl From<Point> for Vertex2D[src]

impl PartialEq<Vertex2D> for Vertex2D[src]

impl Pod for Vertex2D[src]

impl<'a, G> Stroke<Vertex2D, G> for DrawList<'a> where
    G: Into<Geometry<'a, Vertex2D>>, 

impl StructuralPartialEq for Vertex2D[src]

impl Vertex for Vertex2D[src]

impl Zeroable for Vertex2D[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Debug + Any

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,