#[repr(C)]
pub struct RGBLedMatrixOptions {
Show 19 fields pub hardware_mapping: *const c_char, pub rows: c_int, pub cols: c_int, pub chain_length: c_int, pub parallel: c_int, pub pwm_bits: c_int, pub pwm_lsb_nanoseconds: c_int, pub pwm_dither_bits: c_int, pub brightness: c_int, pub scan_mode: c_int, pub row_address_type: c_int, pub multiplexing: c_int, pub led_rgb_sequence: *const c_char, pub pixel_mapper_config: *const c_char, pub panel_type: *const c_char, pub disable_hardware_pulsing: c_char, pub show_refresh_rate: c_char, pub inverse_colors: c_char, pub limit_refresh_rate_hz: c_int,
}
Expand description

Parameters to create a new matrix.

To get the defaults, non-set values have to be initialized to zero, so you should zero out this struct before setting anything.

Fields

hardware_mapping: *const c_charrows: c_intcols: c_intchain_length: c_intparallel: c_intpwm_bits: c_intpwm_lsb_nanoseconds: c_intpwm_dither_bits: c_intbrightness: c_intscan_mode: c_introw_address_type: c_intmultiplexing: c_intled_rgb_sequence: *const c_charpixel_mapper_config: *const c_charpanel_type: *const c_chardisable_hardware_pulsing: c_char

The following are boolean flags, all off by default

show_refresh_rate: c_charinverse_colors: c_charlimit_refresh_rate_hz: c_int

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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.