pub struct Callback<'ui, F> { /* private fields */ }
Implementations§
source§impl<'ui, F: FnOnce() + 'static> Callback<'ui, F>
impl<'ui, F: FnOnce() + 'static> Callback<'ui, F>
sourcepub fn new(draw_list: &'ui DrawListMut<'_>, callback: F) -> Self
pub fn new(draw_list: &'ui DrawListMut<'_>, callback: F) -> Self
Typically constructed by DrawListMut::add_callback
Auto Trait Implementations§
impl<'ui, F> Freeze for Callback<'ui, F>where
F: Freeze,
impl<'ui, F> !RefUnwindSafe for Callback<'ui, F>
impl<'ui, F> !Send for Callback<'ui, F>
impl<'ui, F> !Sync for Callback<'ui, F>
impl<'ui, F> Unpin for Callback<'ui, F>where
F: Unpin,
impl<'ui, F> !UnwindSafe for Callback<'ui, F>
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