Struct interoptopus::patterns::callbacks::NamedCallback
source · pub struct NamedCallback { /* private fields */ }
Expand description
Internal helper naming a generated callback type wrapper.
Implementations§
source§impl NamedCallback
impl NamedCallback
sourcepub fn new(callback: FnPointerType) -> Self
pub fn new(callback: FnPointerType) -> Self
Creates a new named callback.
sourcepub fn fnpointer(&self) -> &FnPointerType
pub fn fnpointer(&self) -> &FnPointerType
Returns the function pointer type.
Trait Implementations§
source§impl Clone for NamedCallback
impl Clone for NamedCallback
source§fn clone(&self) -> NamedCallback
fn clone(&self) -> NamedCallback
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 NamedCallback
impl Debug for NamedCallback
source§impl Hash for NamedCallback
impl Hash for NamedCallback
source§impl Ord for NamedCallback
impl Ord for NamedCallback
source§fn cmp(&self, other: &NamedCallback) -> Ordering
fn cmp(&self, other: &NamedCallback) -> 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 NamedCallback
impl PartialEq for NamedCallback
source§fn eq(&self, other: &NamedCallback) -> bool
fn eq(&self, other: &NamedCallback) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NamedCallback
impl PartialOrd for NamedCallback
source§fn partial_cmp(&self, other: &NamedCallback) -> Option<Ordering>
fn partial_cmp(&self, other: &NamedCallback) -> 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 Eq for NamedCallback
impl StructuralPartialEq for NamedCallback
Auto Trait Implementations§
impl RefUnwindSafe for NamedCallback
impl Send for NamedCallback
impl Sync for NamedCallback
impl Unpin for NamedCallback
impl UnwindSafe for NamedCallback
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