NcChannel_u32

Type Alias NcChannel_u32 

Source
pub type NcChannel_u32 = u32;
Expand description

32 bits of context-dependent info containing NcRgb_u32

It’s recommended to use NcChannel instead.

It is composed of:

  • a 24-bit NcRgb_u32 value
  • plus 8 bits divided in:
    • 2 bits of NcAlpha_u32
    • 6 bits of context-dependent info

The context details are documented in NcChannels_u64.

§Diagram

~~AA~~~~ RRRRRRRR GGGGGGGG BBBBBBBB

type in C: channel (uint32_t)

§See also

Trait Implementations§

Source§

impl<'a> From<&'a NcChannel> for &'a NcChannel_u32

Source§

fn from(s: &'a NcChannel) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut NcChannel> for &'a mut NcChannel_u32

Source§

fn from(s: &'a mut NcChannel) -> Self

Converts to this type from the input type.
Source§

impl From<NcChannel> for NcChannel_u32

Source§

fn from(s: NcChannel) -> Self

Converts to this type from the input type.