[][src]Struct cichlid::power_mgmt::DefaultPowerEstimator

pub struct DefaultPowerEstimator;

Default estimator.

Trait Implementations

impl PowerEstimator for DefaultPowerEstimator[src]

fn estimate(rgb: ColorRGB) -> u32[src]

Estimates the power consumption in milliwatts.

fn estimate_no_idle(rgb: ColorRGB) -> u32[src]

Estimates the power consumption in milliwatts without taking into consideration idle power.

fn estimate_strand(strand: &[ColorRGB]) -> u32[src]

Estimates the power consumption in milliwatts of a strand of ColorRGBs.

fn estimate_max_brightness(
    strand: &[ColorRGB],
    target_brightness: u8,
    max_power_mW: u32
) -> u8
[src]

Estimates the maximum brightness a strand of pixels can push from a given milli-Watt power limit. Read more

fn estimate_max_brightness_av(
    strand: &[ColorRGB],
    target_brightness: u8,
    max_power_mA: u32,
    max_power_mV: u32
) -> u8
[src]

Estimates the maximum brightness a strand of pixels can push from a given milli-Volt and milli-Amp limit. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.