#[repr(C)]pub struct GrayAlphaF32 {
pub v: f32,
pub a: f32,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
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 (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 GrayAlphaF32
Source§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
Source§impl PixelType for GrayAlphaF32
impl PixelType for GrayAlphaF32
Source§const LAYOUT: SampleLayout = SampleLayout::GRAYAF32
const LAYOUT: SampleLayout = SampleLayout::GRAYAF32
Expected
SampleLayout for this Rust pixel struct.impl Pod for GrayAlphaF32
impl StructuralPartialEq for GrayAlphaF32
Source§impl TypedElement for GrayAlphaF32
impl TypedElement for GrayAlphaF32
Source§fn matches_layout_with_packing(
layout: SampleLayout,
access: BitPackingAccess,
) -> bool
fn matches_layout_with_packing( layout: SampleLayout, access: BitPackingAccess, ) -> bool
Whether this element type is semantically compatible with
layout under an explicit
BitPackingAccess policy.Source§fn matches_layout(layout: SampleLayout) -> bool
fn matches_layout(layout: SampleLayout) -> bool
Whether this element type is semantically compatible with
layout under default
BitPackingAccess::Fail (requiring BitPacking::Full).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§
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<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.