#[repr(C)]pub struct GrayAlphaF16 {
pub v: F16Sample,
pub a: F16Sample,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Grayscale + alpha, f16.
Fields§
§v: F16SampleGray value.
a: F16SampleAlpha value.
Implementations§
Source§impl GrayAlphaF16
impl GrayAlphaF16
Sourcepub const fn new(v: F16Sample, a: F16Sample) -> GrayAlphaF16
pub const fn new(v: F16Sample, a: F16Sample) -> GrayAlphaF16
Create a new gray+alpha pixel.
Trait Implementations§
Source§impl Clone for GrayAlphaF16
impl Clone for GrayAlphaF16
Source§fn clone(&self) -> GrayAlphaF16
fn clone(&self) -> GrayAlphaF16
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 GrayAlphaF16
Source§impl Debug for GrayAlphaF16
impl Debug for GrayAlphaF16
Source§impl Default for GrayAlphaF16
impl Default for GrayAlphaF16
Source§fn default() -> GrayAlphaF16
fn default() -> GrayAlphaF16
Returns the “default value” for a type. Read more
Source§impl PartialEq for GrayAlphaF16
impl PartialEq for GrayAlphaF16
Source§impl PixelType for GrayAlphaF16
impl PixelType for GrayAlphaF16
Source§const LAYOUT: SampleLayout = SampleLayout::GRAYAF16
const LAYOUT: SampleLayout = SampleLayout::GRAYAF16
Expected
SampleLayout for this Rust pixel struct.impl Pod for GrayAlphaF16
impl StructuralPartialEq for GrayAlphaF16
Source§impl TypedElement for GrayAlphaF16
impl TypedElement for GrayAlphaF16
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 GrayAlphaF16
impl RefUnwindSafe for GrayAlphaF16
impl Send for GrayAlphaF16
impl Sync for GrayAlphaF16
impl Unpin for GrayAlphaF16
impl UnsafeUnpin for GrayAlphaF16
impl UnwindSafe for GrayAlphaF16
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.