Struct avenger_wgpu::marks::symbol::SymbolInstance
source · #[repr(C)]pub struct SymbolInstance {
pub position: [f32; 2],
pub fill_color: [f32; 4],
pub stroke_color: [f32; 4],
pub stroke_width: f32,
pub relative_scale: f32,
pub angle: f32,
pub shape_index: u32,
}Fields§
§position: [f32; 2]§fill_color: [f32; 4]§stroke_color: [f32; 4]§stroke_width: f32§relative_scale: f32§angle: f32§shape_index: u32Implementations§
source§impl SymbolInstance
impl SymbolInstance
pub fn from_spec( mark: &SymbolMark, max_size: f32 ) -> (Vec<SymbolInstance>, Option<DynamicImage>, Extent3d)
Trait Implementations§
source§impl Clone for SymbolInstance
impl Clone for SymbolInstance
source§fn clone(&self) -> SymbolInstance
fn clone(&self) -> SymbolInstance
Returns a copy of the value. Read more
1.0.0 · 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 SymbolInstance
impl Debug for SymbolInstance
impl Copy for SymbolInstance
impl Pod for SymbolInstance
Auto Trait Implementations§
impl RefUnwindSafe for SymbolInstance
impl Send for SymbolInstance
impl Sync for SymbolInstance
impl Unpin for SymbolInstance
impl UnwindSafe for SymbolInstance
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,
§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.