#[repr(transparent)]pub struct Rgb565Pixel(pub u16);
Expand description
A 16bit pixel that has 5 red bits, 6 green bits and 5 blue bits
Tuple Fields§
§0: u16
Trait Implementations§
Source§impl Clone for Rgb565Pixel
impl Clone for Rgb565Pixel
Source§fn clone(&self) -> Rgb565Pixel
fn clone(&self) -> Rgb565Pixel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Rgb565Pixel
impl Debug for Rgb565Pixel
Source§impl Default for Rgb565Pixel
impl Default for Rgb565Pixel
Source§fn default() -> Rgb565Pixel
fn default() -> Rgb565Pixel
Returns the “default value” for a type. Read more
Source§impl PartialEq for Rgb565Pixel
impl PartialEq for Rgb565Pixel
Source§impl TargetPixel for Rgb565Pixel
impl TargetPixel for Rgb565Pixel
Source§fn blend(&mut self, color: PremultipliedRgbaColor)
fn blend(&mut self, color: PremultipliedRgbaColor)
Blend a single pixel with a color
Source§fn from_rgb(r: u8, g: u8, b: u8) -> Rgb565Pixel
fn from_rgb(r: u8, g: u8, b: u8) -> Rgb565Pixel
Create a pixel from the red, gree, blue component in the range 0..=255
Source§fn blend_slice(slice: &mut [Self], color: PremultipliedRgbaColor)
fn blend_slice(slice: &mut [Self], color: PremultipliedRgbaColor)
Blend a color to all the pixel in the slice.
Source§fn background() -> Self
fn background() -> Self
Pixel which will be filled as the background in case the slint view has transparency
impl Copy for Rgb565Pixel
impl Eq for Rgb565Pixel
impl Pod for Rgb565Pixel
impl StructuralPartialEq for Rgb565Pixel
Auto Trait Implementations§
impl Freeze for Rgb565Pixel
impl RefUnwindSafe for Rgb565Pixel
impl Send for Rgb565Pixel
impl Sync for Rgb565Pixel
impl Unpin for Rgb565Pixel
impl UnwindSafe for Rgb565Pixel
Blanket Implementations§
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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
.Source§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
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.