#[repr(C)]pub struct VectorMeshVertex {
pub pos: [f32; 2],
pub local: [f32; 2],
pub color: [f32; 4],
pub meta: [f32; 4],
}Fields§
§pos: [f32; 2]Logical-pixel position after fitting the vector asset into its destination rect.
local: [f32; 2]SVG/viewBox-space coordinate. Theme shaders can use this for gradients, highlights, bevels, and other icon-local effects.
color: [f32; 4]§meta: [f32; 4]Reserved for material shaders: x = path index, y = primitive kind (0 fill, 1 stroke), z/w reserved.
Trait Implementations§
Source§impl Clone for VectorMeshVertex
impl Clone for VectorMeshVertex
Source§fn clone(&self) -> VectorMeshVertex
fn clone(&self) -> VectorMeshVertex
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 moreSource§impl Debug for VectorMeshVertex
impl Debug for VectorMeshVertex
Source§impl PartialEq for VectorMeshVertex
impl PartialEq for VectorMeshVertex
Source§fn eq(&self, other: &VectorMeshVertex) -> bool
fn eq(&self, other: &VectorMeshVertex) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for VectorMeshVertex
impl Pod for VectorMeshVertex
impl StructuralPartialEq for VectorMeshVertex
Auto Trait Implementations§
impl Freeze for VectorMeshVertex
impl RefUnwindSafe for VectorMeshVertex
impl Send for VectorMeshVertex
impl Sync for VectorMeshVertex
impl Unpin for VectorMeshVertex
impl UnsafeUnpin for VectorMeshVertex
impl UnwindSafe for VectorMeshVertex
Blanket Implementations§
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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.Source§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.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.