Struct winsafe::guard::LogpaletteGuard
source · pub struct LogpaletteGuard { /* private fields */ }
Available on crate features
kernel
and gdi
only.Expand description
RAII implementation for LOGPALETTE
which manages the
allocated memory.
Methods from Deref<Target = LOGPALETTE>§
sourcepub fn palPalEntry(&self) -> &[PALETTEENTRY]
pub fn palPalEntry(&self) -> &[PALETTEENTRY]
Returns a constant slice over the palPalEntry
entries.
sourcepub fn palPalEntry_mut(&mut self) -> &mut [PALETTEENTRY]
pub fn palPalEntry_mut(&mut self) -> &mut [PALETTEENTRY]
Returns a mutable slice over the palPalEntry
entries.
Trait Implementations§
source§impl Deref for LogpaletteGuard
impl Deref for LogpaletteGuard
Auto Trait Implementations§
impl Freeze for LogpaletteGuard
impl RefUnwindSafe for LogpaletteGuard
impl Send for LogpaletteGuard
impl !Sync for LogpaletteGuard
impl Unpin for LogpaletteGuard
impl UnwindSafe for LogpaletteGuard
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