#[repr(C)]pub struct GrayAlphaF32 {
pub v: f32,
pub a: f32,
}Expand description
Grayscale + alpha, f32.
Fields§
§v: f32Gray value.
a: f32Alpha value.
Implementations§
Source§impl GrayAlphaF32
impl GrayAlphaF32
Sourcepub const fn new(v: f32, a: f32) -> GrayAlphaF32
pub const fn new(v: f32, a: f32) -> GrayAlphaF32
Create a new gray+alpha pixel.
Trait Implementations§
Source§impl Clone for GrayAlphaF32
impl Clone for GrayAlphaF32
Source§fn clone(&self) -> GrayAlphaF32
fn clone(&self) -> GrayAlphaF32
Returns a duplicate 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 GrayAlphaF32
impl Debug for GrayAlphaF32
Source§impl Default for GrayAlphaF32
impl Default for GrayAlphaF32
Source§fn default() -> GrayAlphaF32
fn default() -> GrayAlphaF32
Returns the “default value” for a type. Read more
Source§impl PartialEq for GrayAlphaF32
impl PartialEq for GrayAlphaF32
impl Copy for GrayAlphaF32
impl Pod for GrayAlphaF32
impl StructuralPartialEq for GrayAlphaF32
Auto Trait Implementations§
impl Freeze for GrayAlphaF32
impl RefUnwindSafe for GrayAlphaF32
impl Send for GrayAlphaF32
impl Sync for GrayAlphaF32
impl Unpin for GrayAlphaF32
impl UnsafeUnpin for GrayAlphaF32
impl UnwindSafe for GrayAlphaF32
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.