#[repr(C)]
pub struct SpecArray<const N: usize, S: 'static> { /* private fields */ }
Expand description

A zero-terminated parameter spec array, followed by handlers.

Implementations

Creates a new spec array.

Users are encouraged to use the define_fs_params macro to define the super::Context::PARAMS constant.

Safety

The type of the elements in handlers must be compatible with the types in specs. For example, if specs declares that the i-th element is a bool then the i-th handler should be for a bool.

Returns a SpecTable backed by self.

This is used to essentially erase the array size.

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.

Calls U::from(self).

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

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.