#[repr(C)]pub struct GridConfig {
pub cell_size: f32,
pub line_width: f32,
pub _padding: [f32; 2],
pub color: [f32; 4],
}Expand description
Uniform configuration for background grid rendering.
Fields§
§cell_size: f32§line_width: f32§_padding: [f32; 2]§color: [f32; 4]Trait Implementations§
Source§impl Clone for GridConfig
impl Clone for GridConfig
impl Copy for GridConfig
Source§impl Debug for GridConfig
impl Debug for GridConfig
Source§impl Default for GridConfig
impl Default for GridConfig
Source§impl PartialEq for GridConfig
impl PartialEq for GridConfig
impl Pod for GridConfig
impl StructuralPartialEq for GridConfig
Auto Trait Implementations§
impl Forget for GridConfig
impl Freeze for GridConfig
impl Move for GridConfig
impl RefUnwindSafe for GridConfig
impl Send for GridConfig
impl Sync for GridConfig
impl Unpin for GridConfig
impl UnsafeUnpin for GridConfig
impl UnwindSafe for GridConfig
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
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.