Struct arcdps_imgui::color::ImColor32Fields
source · #[repr(C, align(4))]pub struct ImColor32Fields {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}
Expand description
A struct that exists to allow field access to ImColor32
. It essentially
exists to be a Deref
/DerefMut
target and provide field access.
Note that while this is repr(C), be aware that on big-endian machines
(cfg(target_endian = "big")
) the order of the fields is reversed, as this
is a view into a packed u32.
Generally should not be used, except as the target of the Deref
impl of
ImColor32
.
Fields§
§r: u8
§g: u8
§b: u8
§a: u8
Trait Implementations§
source§impl Clone for ImColor32Fields
impl Clone for ImColor32Fields
source§fn clone(&self) -> ImColor32Fields
fn clone(&self) -> ImColor32Fields
Returns a copy 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 ImColor32Fields
impl Debug for ImColor32Fields
impl Copy for ImColor32Fields
Auto Trait Implementations§
impl Freeze for ImColor32Fields
impl RefUnwindSafe for ImColor32Fields
impl Send for ImColor32Fields
impl Sync for ImColor32Fields
impl Unpin for ImColor32Fields
impl UnwindSafe for ImColor32Fields
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)