Struct ms_oforms::properties::color::SystemPaletteIndex
source · pub struct SystemPaletteIndex(_);
Expand description
16-bit integer that may be a valid SystemColor
Implementations§
source§impl SystemPaletteIndex
impl SystemPaletteIndex
pub const fn as_ole_color(&self) -> OleColor
pub fn as_system_color(&self) -> Option<SystemColor>
Trait Implementations§
source§impl Clone for SystemPaletteIndex
impl Clone for SystemPaletteIndex
source§fn clone(&self) -> SystemPaletteIndex
fn clone(&self) -> SystemPaletteIndex
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 SystemPaletteIndex
impl Debug for SystemPaletteIndex
source§impl From<SystemColor> for SystemPaletteIndex
impl From<SystemColor> for SystemPaletteIndex
source§fn from(value: SystemColor) -> Self
fn from(value: SystemColor) -> Self
Converts to this type from the input type.
source§impl Hash for SystemPaletteIndex
impl Hash for SystemPaletteIndex
source§impl Ord for SystemPaletteIndex
impl Ord for SystemPaletteIndex
source§fn cmp(&self, other: &SystemPaletteIndex) -> Ordering
fn cmp(&self, other: &SystemPaletteIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SystemPaletteIndex> for SystemPaletteIndex
impl PartialEq<SystemPaletteIndex> for SystemPaletteIndex
source§fn eq(&self, other: &SystemPaletteIndex) -> bool
fn eq(&self, other: &SystemPaletteIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SystemPaletteIndex> for SystemPaletteIndex
impl PartialOrd<SystemPaletteIndex> for SystemPaletteIndex
source§fn partial_cmp(&self, other: &SystemPaletteIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &SystemPaletteIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SystemPaletteIndex
impl Eq for SystemPaletteIndex
impl StructuralEq for SystemPaletteIndex
impl StructuralPartialEq for SystemPaletteIndex
Auto Trait Implementations§
impl RefUnwindSafe for SystemPaletteIndex
impl Send for SystemPaletteIndex
impl Sync for SystemPaletteIndex
impl Unpin for SystemPaletteIndex
impl UnwindSafe for SystemPaletteIndex
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