Struct winsafe::guard::ImageListEndDragGuard
source · pub struct ImageListEndDragGuard<'a> { /* private fields */ }
Available on crate features
kernel
and comctl
only.Expand description
RAII implementation for image list drag which automatically calls
ImageList_EndDrag
when the object goes out of scope.
Implementations§
source§impl<'a> ImageListEndDragGuard<'a>
impl<'a> ImageListEndDragGuard<'a>
sourcepub const unsafe fn new(himagelist: PhantomData<&'a ()>) -> Self
pub const unsafe fn new(himagelist: PhantomData<&'a ()>) -> Self
Constructs the guard by taking ownership of the object.
§Safety
Be sure the handle must be freed with
ImageList_EndDrag
at the end of scope.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ImageListEndDragGuard<'a>
impl<'a> RefUnwindSafe for ImageListEndDragGuard<'a>
impl<'a> Send for ImageListEndDragGuard<'a>
impl<'a> Sync for ImageListEndDragGuard<'a>
impl<'a> Unpin for ImageListEndDragGuard<'a>
impl<'a> UnwindSafe for ImageListEndDragGuard<'a>
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