#[repr(C)]pub struct GrayAlpha16 {
pub v: u16,
pub a: u16,
}Expand description
Grayscale + alpha, 16-bit.
Fields§
§v: u16Gray value.
a: u16Alpha value.
Implementations§
Source§impl GrayAlpha16
impl GrayAlpha16
Sourcepub const fn new(v: u16, a: u16) -> GrayAlpha16
pub const fn new(v: u16, a: u16) -> GrayAlpha16
Create a new gray+alpha pixel.
Trait Implementations§
Source§impl Clone for GrayAlpha16
impl Clone for GrayAlpha16
Source§fn clone(&self) -> GrayAlpha16
fn clone(&self) -> GrayAlpha16
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 GrayAlpha16
Source§impl Debug for GrayAlpha16
impl Debug for GrayAlpha16
Source§impl Default for GrayAlpha16
impl Default for GrayAlpha16
Source§fn default() -> GrayAlpha16
fn default() -> GrayAlpha16
Returns the “default value” for a type. Read more
impl Eq for GrayAlpha16
Source§impl Hash for GrayAlpha16
impl Hash for GrayAlpha16
Source§impl PartialEq for GrayAlpha16
impl PartialEq for GrayAlpha16
Source§impl PixelType for GrayAlpha16
impl PixelType for GrayAlpha16
Source§const LAYOUT: SampleLayout = SampleLayout::GRAYA16
const LAYOUT: SampleLayout = SampleLayout::GRAYA16
Expected
SampleLayout for this Rust pixel struct.impl Pod for GrayAlpha16
impl StructuralPartialEq for GrayAlpha16
Source§impl TypedElement for GrayAlpha16
impl TypedElement for GrayAlpha16
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 GrayAlpha16
impl RefUnwindSafe for GrayAlpha16
impl Send for GrayAlpha16
impl Sync for GrayAlpha16
impl Unpin for GrayAlpha16
impl UnsafeUnpin for GrayAlpha16
impl UnwindSafe for GrayAlpha16
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.