#[repr(C)]pub struct AxTestModHookDescriptor {
pub module: &'static str,
pub init: Option<fn(AxTestDescriptor)>,
pub exit: Option<fn(AxTestDescriptor)>,
}Expand description
Linker-collected descriptor for a module’s optional init/exit hooks.
Fields§
§module: &'static strModule path this hook descriptor belongs to.
init: Option<fn(AxTestDescriptor)>Optional pre-test hook.
exit: Option<fn(AxTestDescriptor)>Optional post-test hook.
Implementations§
Source§impl AxTestModHookDescriptor
impl AxTestModHookDescriptor
Sourcepub const fn new(
module: &'static str,
init: Option<fn(AxTestDescriptor)>,
exit: Option<fn(AxTestDescriptor)>,
) -> Self
pub const fn new( module: &'static str, init: Option<fn(AxTestDescriptor)>, exit: Option<fn(AxTestDescriptor)>, ) -> Self
Construct a new immutable module hook descriptor.
Trait Implementations§
Source§impl Clone for AxTestModHookDescriptor
impl Clone for AxTestModHookDescriptor
Source§fn clone(&self) -> AxTestModHookDescriptor
fn clone(&self) -> AxTestModHookDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AxTestModHookDescriptor
Auto Trait Implementations§
impl Freeze for AxTestModHookDescriptor
impl RefUnwindSafe for AxTestModHookDescriptor
impl Send for AxTestModHookDescriptor
impl Sync for AxTestModHookDescriptor
impl Unpin for AxTestModHookDescriptor
impl UnsafeUnpin for AxTestModHookDescriptor
impl UnwindSafe for AxTestModHookDescriptor
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