LogitechLcd

Struct LogitechLcd 

Source
pub struct LogitechLcd {
Show 14 fields pub LogiLcdInit: unsafe extern "C" fn(friendlyName: *const u16, lcdType: c_uint) -> bool, pub LogiLcdIsConnected: unsafe extern "C" fn(lcdType: c_uint) -> bool, pub LogiLcdIsButtonPressed: unsafe extern "C" fn(button: c_uint) -> bool, pub LogiLcdUpdate: unsafe extern "C" fn(), pub LogiLcdShutdown: unsafe extern "C" fn(), pub LogiLcdMonoSetBackground: unsafe extern "C" fn(monoBitmap: *const u8) -> bool, pub LogiLcdMonoSetText: unsafe extern "C" fn(lineNumber: c_int, text: *const u16) -> bool, pub LogiLcdColorSetBackground: unsafe extern "C" fn(colorBitmap: *const u8) -> bool, pub LogiLcdColorSetTitle: unsafe extern "C" fn(text: *const u16, red: c_int, green: c_int, blue: c_int) -> bool, pub LogiLcdColorSetText: unsafe extern "C" fn(lineNumber: c_int, text: *const u16, red: c_int, green: c_int, blue: c_int) -> bool, pub LogiLcdColorSetBackgroundUDK: unsafe extern "C" fn(partialBitmap: *const u8, arraySize: c_int) -> c_int, pub LogiLcdColorResetBackgroundUDK: unsafe extern "C" fn() -> c_int, pub LogiLcdMonoSetBackgroundUDK: unsafe extern "C" fn(partialBitmap: *const u8, arraySize: c_int) -> c_int, pub LogiLcdMonoResetBackgroundUDK: unsafe extern "C" fn() -> c_int, /* private fields */
}
Expand description

LogitechLcd library.

Contains library symbols/functions as fields. Will unload library when dropped.

Fields§

§LogiLcdInit: unsafe extern "C" fn(friendlyName: *const u16, lcdType: c_uint) -> bool§LogiLcdIsConnected: unsafe extern "C" fn(lcdType: c_uint) -> bool§LogiLcdIsButtonPressed: unsafe extern "C" fn(button: c_uint) -> bool§LogiLcdUpdate: unsafe extern "C" fn()§LogiLcdShutdown: unsafe extern "C" fn()§LogiLcdMonoSetBackground: unsafe extern "C" fn(monoBitmap: *const u8) -> bool§LogiLcdMonoSetText: unsafe extern "C" fn(lineNumber: c_int, text: *const u16) -> bool§LogiLcdColorSetBackground: unsafe extern "C" fn(colorBitmap: *const u8) -> bool§LogiLcdColorSetTitle: unsafe extern "C" fn(text: *const u16, red: c_int, green: c_int, blue: c_int) -> bool§LogiLcdColorSetText: unsafe extern "C" fn(lineNumber: c_int, text: *const u16, red: c_int, green: c_int, blue: c_int) -> bool§LogiLcdColorSetBackgroundUDK: unsafe extern "C" fn(partialBitmap: *const u8, arraySize: c_int) -> c_int§LogiLcdColorResetBackgroundUDK: unsafe extern "C" fn() -> c_int§LogiLcdMonoSetBackgroundUDK: unsafe extern "C" fn(partialBitmap: *const u8, arraySize: c_int) -> c_int§LogiLcdMonoResetBackgroundUDK: unsafe extern "C" fn() -> c_int

Implementations§

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.