#[repr(C)]pub struct FillVertex {
pub pos: [f32; 2],
pub color: u32,
}Expand description
Filled triangle vertex.
Fields§
§pos: [f32; 2]Position (local units).
color: u32Premultiplied RGBA8.
Trait Implementations§
Source§impl Clone for FillVertex
impl Clone for FillVertex
Source§fn clone(&self) -> FillVertex
fn clone(&self) -> FillVertex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FillVertex
Source§impl Debug for FillVertex
impl Debug for FillVertex
Source§impl PartialEq for FillVertex
impl PartialEq for FillVertex
Source§fn eq(&self, other: &FillVertex) -> bool
fn eq(&self, other: &FillVertex) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Pod for FillVertex
impl StructuralPartialEq for FillVertex
Auto Trait Implementations§
impl Freeze for FillVertex
impl RefUnwindSafe for FillVertex
impl Send for FillVertex
impl Sync for FillVertex
impl Unpin for FillVertex
impl UnsafeUnpin for FillVertex
impl UnwindSafe for FillVertex
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.