pub struct ThisModule(_);
Expand description

Equivalent to THIS_MODULE in the C API.

C header: include/linux/export.h

Implementations

Creates a ThisModule given the THIS_MODULE pointer.

Safety

The pointer must be equal to the right THIS_MODULE.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Initializes slot. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Initializes slot. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.