Struct interoptopus::patterns::callbacks::NamedCallback
source · [−]pub struct NamedCallback { /* private fields */ }
Expand description
Internal helper naming a generated callback type wrapper.
Implementations
sourceimpl NamedCallback
impl NamedCallback
sourcepub fn new(name: String, callback: FnPointerType) -> Self
pub fn new(name: String, 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
sourceimpl Clone for NamedCallback
impl Clone for NamedCallback
sourcefn clone(&self) -> NamedCallback
fn clone(&self) -> NamedCallback
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NamedCallback
impl Debug for NamedCallback
sourceimpl Hash for NamedCallback
impl Hash for NamedCallback
sourceimpl Ord for NamedCallback
impl Ord for NamedCallback
sourceimpl PartialEq<NamedCallback> for NamedCallback
impl PartialEq<NamedCallback> for NamedCallback
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &NamedCallback) -> bool
fn ne(&self, other: &NamedCallback) -> bool
This method tests for !=
.
sourceimpl PartialOrd<NamedCallback> for NamedCallback
impl PartialOrd<NamedCallback> for NamedCallback
sourcefn partial_cmp(&self, other: &NamedCallback) -> Option<Ordering>
fn partial_cmp(&self, other: &NamedCallback) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Eq for NamedCallback
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more