[−][src]Struct embedded_graphics::pixelcolor::raw::RawU16
16 bits per pixel raw data.
RawU16
is internally stored in an u16
. It can be constructed from an u16
by using the new
method or by calling RawU16::from(u16_value)
. To convert a RawU16
back into a u16
the into_inner
method can be used.
See the module-level documentation for more information.
Methods
impl RawU16
[src]
pub const fn new(value: u16) -> Self
[src]
Creates a new color from the least significant 16 bits of value.
Trait Implementations
impl Clone for RawU16
[src]
fn clone(&self) -> RawU16
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RawU16
[src]
impl Debug for RawU16
[src]
impl Default for RawU16
[src]
impl Eq for RawU16
[src]
impl From<Bgr555> for RawU16
[src]
impl From<Bgr565> for RawU16
[src]
impl From<RawU16> for Rgb555
[src]
impl From<RawU16> for Bgr555
[src]
impl From<RawU16> for Rgb565
[src]
impl From<RawU16> for Bgr565
[src]
impl From<Rgb555> for RawU16
[src]
impl From<Rgb565> for RawU16
[src]
impl From<u16> for RawU16
[src]
impl Hash for RawU16
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for RawU16
[src]
fn cmp(&self, other: &RawU16) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<RawU16> for RawU16
[src]
impl PartialOrd<RawU16> for RawU16
[src]
fn partial_cmp(&self, other: &RawU16) -> Option<Ordering>
[src]
fn lt(&self, other: &RawU16) -> bool
[src]
fn le(&self, other: &RawU16) -> bool
[src]
fn gt(&self, other: &RawU16) -> bool
[src]
fn ge(&self, other: &RawU16) -> bool
[src]
impl RawData for RawU16
[src]
type Storage = u16
Storage type. Read more
const BITS_PER_PIXEL: usize
[src]
fn into_inner(self) -> Self::Storage
[src]
fn from_u32(value: u32) -> Self
[src]
impl StructuralEq for RawU16
[src]
impl StructuralPartialEq for RawU16
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,