#[repr(C)]
pub struct maple_driver_t {
pub next: *mut maple_driver_t,
pub prev: *mut *mut maple_driver_t,
pub functions: u32,
pub name: *const c_char,
pub periodic: Option<extern "C" fn(drv: *mut maple_driver_t)>,
pub attach: Option<extern "C" fn(drv: *mut maple_driver_t, dev: *mut maple_device_t) -> c_int>,
pub detach: Option<extern "C" fn(drv: *mut maple_driver_t, dev: *mut maple_device_t)>,
}
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.