#[repr(transparent)]pub struct OverlayColor(pub u32);Expand description
An overlay colour with real alpha: 0xAA_RR_GG_BB (0xFF =
opaque). Used by the overlay-line API (Line3) — the one place
in the engine where the high byte genuinely is opacity.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl Clone for OverlayColor
impl Clone for OverlayColor
Source§fn clone(&self) -> OverlayColor
fn clone(&self) -> OverlayColor
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 OverlayColor
Source§impl Debug for OverlayColor
impl Debug for OverlayColor
impl Eq for OverlayColor
Source§impl Hash for OverlayColor
impl Hash for OverlayColor
Source§impl PartialEq for OverlayColor
impl PartialEq for OverlayColor
impl StructuralPartialEq for OverlayColor
Auto Trait Implementations§
impl Freeze for OverlayColor
impl RefUnwindSafe for OverlayColor
impl Send for OverlayColor
impl Sync for OverlayColor
impl Unpin for OverlayColor
impl UnsafeUnpin for OverlayColor
impl UnwindSafe for OverlayColor
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