#[repr(C)]pub struct CoreMenuCallback {
pub refany: RefAny,
pub callback: CoreCallback,
}Expand description
Menu callback using usize placeholder for function pointer.
This type is used in azul-core to represent menu item callbacks without
creating circular dependencies with azul-layout. The actual function pointer
is stored as a usize and converted via unsafe code in azul-layout.
Fields§
§refany: RefAny§callback: CoreCallbackTrait Implementations§
Source§impl Clone for CoreMenuCallback
impl Clone for CoreMenuCallback
Source§fn clone(&self) -> CoreMenuCallback
fn clone(&self) -> CoreMenuCallback
Returns a duplicate 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 CoreMenuCallback
impl Debug for CoreMenuCallback
Source§impl Hash for CoreMenuCallback
impl Hash for CoreMenuCallback
Source§impl Ord for CoreMenuCallback
impl Ord for CoreMenuCallback
Source§fn cmp(&self, other: &CoreMenuCallback) -> Ordering
fn cmp(&self, other: &CoreMenuCallback) -> 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 for CoreMenuCallback
impl PartialEq for CoreMenuCallback
Source§impl PartialOrd for CoreMenuCallback
impl PartialOrd for CoreMenuCallback
impl Eq for CoreMenuCallback
impl StructuralPartialEq for CoreMenuCallback
Auto Trait Implementations§
impl Freeze for CoreMenuCallback
impl RefUnwindSafe for CoreMenuCallback
impl Send for CoreMenuCallback
impl Sync for CoreMenuCallback
impl Unpin for CoreMenuCallback
impl UnwindSafe for CoreMenuCallback
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more