Enum LuminanceUnit

Source
pub enum LuminanceUnit {
Show 35 variants yottacandela_per_square_meter, zettacandela_per_square_meter, exacandela_per_square_meter, petacandela_per_square_meter, teracandela_per_square_meter, gigacandela_per_square_meter, megacandela_per_square_meter, kilocandela_per_square_meter, hectocandela_per_square_meter, decacandela_per_square_meter, candela_per_square_meter, decicandela_per_square_meter, centicandela_per_square_meter, millicandela_per_square_meter, microcandela_per_square_meter, nanocandela_per_square_meter, picocandela_per_square_meter, femtocandela_per_square_meter, attocandela_per_square_meter, zeptocandela_per_square_meter, yoctocandela_per_square_meter, candela_per_square_picometer, candela_per_square_nanometer, candela_per_square_micrometer, candela_per_square_millimeter, candela_per_square_centimeter, candela_per_square_kilometer, candela_per_square_megameter, candela_per_square_gigameter, candela_per_square_terameter, candela_per_square_inch, candela_per_square_foot, footlambert, lambert, stilb,
}
Expand description

Luminance (base UnitDefinition candela per square meter, cd · m⁻²).

Variants§

§

yottacandela_per_square_meter

§

zettacandela_per_square_meter

§

exacandela_per_square_meter

§

petacandela_per_square_meter

§

teracandela_per_square_meter

§

gigacandela_per_square_meter

§

megacandela_per_square_meter

§

kilocandela_per_square_meter

§

hectocandela_per_square_meter

§

decacandela_per_square_meter

§

candela_per_square_meter

§

decicandela_per_square_meter

§

centicandela_per_square_meter

§

millicandela_per_square_meter

§

microcandela_per_square_meter

§

nanocandela_per_square_meter

§

picocandela_per_square_meter

§

femtocandela_per_square_meter

§

attocandela_per_square_meter

§

zeptocandela_per_square_meter

§

yoctocandela_per_square_meter

§

candela_per_square_picometer

§

candela_per_square_nanometer

§

candela_per_square_micrometer

§

candela_per_square_millimeter

§

candela_per_square_centimeter

§

candela_per_square_kilometer

§

candela_per_square_megameter

§

candela_per_square_gigameter

§

candela_per_square_terameter

§

candela_per_square_inch

§

candela_per_square_foot

§

footlambert

§

lambert

§

stilb

Implementations§

Source§

impl LuminanceUnit

Source

pub fn get_yottacandela_per_square_meter() -> UnitDefinition

Source

pub fn get_zettacandela_per_square_meter() -> UnitDefinition

Source

pub fn get_exacandela_per_square_meter() -> UnitDefinition

Source

pub fn get_petacandela_per_square_meter() -> UnitDefinition

Source

pub fn get_teracandela_per_square_meter() -> UnitDefinition

Source

pub fn get_gigacandela_per_square_meter() -> UnitDefinition

Source

pub fn get_megacandela_per_square_meter() -> UnitDefinition

Source

pub fn get_kilocandela_per_square_meter() -> UnitDefinition

Source

pub fn get_hectocandela_per_square_meter() -> UnitDefinition

Source

pub fn get_decacandela_per_square_meter() -> UnitDefinition

Source

pub fn get_candela_per_square_meter() -> UnitDefinition

Source

pub fn get_decicandela_per_square_meter() -> UnitDefinition

Source

pub fn get_centicandela_per_square_meter() -> UnitDefinition

Source

pub fn get_millicandela_per_square_meter() -> UnitDefinition

Source

pub fn get_microcandela_per_square_meter() -> UnitDefinition

Source

pub fn get_nanocandela_per_square_meter() -> UnitDefinition

Source

pub fn get_picocandela_per_square_meter() -> UnitDefinition

Source

pub fn get_femtocandela_per_square_meter() -> UnitDefinition

Source

pub fn get_attocandela_per_square_meter() -> UnitDefinition

Source

pub fn get_zeptocandela_per_square_meter() -> UnitDefinition

Source

pub fn get_yoctocandela_per_square_meter() -> UnitDefinition

Source

pub fn get_candela_per_square_picometer() -> UnitDefinition

Source

pub fn get_candela_per_square_nanometer() -> UnitDefinition

Source

pub fn get_candela_per_square_micrometer() -> UnitDefinition

Source

pub fn get_candela_per_square_millimeter() -> UnitDefinition

Source

pub fn get_candela_per_square_centimeter() -> UnitDefinition

Source

pub fn get_candela_per_square_kilometer() -> UnitDefinition

Source

pub fn get_candela_per_square_megameter() -> UnitDefinition

Source

pub fn get_candela_per_square_gigameter() -> UnitDefinition

Source

pub fn get_candela_per_square_terameter() -> UnitDefinition

Source

pub fn get_candela_per_square_inch() -> UnitDefinition

Source

pub fn get_candela_per_square_foot() -> UnitDefinition

Source

pub fn get_footlambert() -> UnitDefinition

Source

pub fn get_lambert() -> UnitDefinition

Source

pub fn get_stilb() -> UnitDefinition

Source

pub const fn multiplier(&self) -> f64

Multiplier of unit to its base quantity.

Source

pub fn abbreviation(&self) -> &'static str

Abbreviation of unit.

Source

pub fn singular(&self) -> &'static str

Singular name of unit.

Source

pub fn plural(&self) -> &'static str

Plural name of unit.

Source

pub fn units() -> &'static [&'static str]

Available units for this [LuminanceUnit].

Trait Implementations§

Source§

impl Clone for LuminanceUnit

Source§

fn clone(&self) -> LuminanceUnit

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LuminanceUnit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LuminanceUnit

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for LuminanceUnit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FixedQuantity<LuminanceUnit> for Luminance

Source§

fn unit(&self) -> LuminanceUnit

Return unit associated with this quantity
Source§

fn convert(&self, unit: LuminanceUnit) -> Self

Convert from this unit to another (creates a copy). No validation of base unit is made.
Source§

fn convert_mut(&mut self, unit: LuminanceUnit)

Convert from this unit to another (modifies current quantity). No validation of base unit is made.
Source§

fn unit_mut(&mut self) -> &mut LuminanceUnit

Return mutable unit associated with this quantity
Source§

fn try_convert(&self, unit: Units) -> Result<Self, RuntimeUnitError>
where Self: Sized,

Try to convert from this unit to another (creates a copy)
Source§

impl<const N: usize> FixedSliceQuantity<LuminanceUnit, f64> for LuminanceArray<N>

Source§

fn unit(&self) -> LuminanceUnit

Return unit associated with this quantity
Source§

fn values(&self) -> &[f64]

Return values in quantity
Source§

fn values_mut(&mut self) -> &mut [f64]

Return mutable values in quantity
Source§

fn len(&self) -> usize

Return number of values in quantity
Source§

fn convert(&self, unit: LuminanceUnit) -> Self

Convert a unit of one UnitType to another of the same type. No validation of base unit is made.
Source§

fn convert_mut(&mut self, unit: LuminanceUnit)

Mutate current quantity, convering a unit of one UnitType to another of the same type. No validation of base unit is made.
Source§

fn try_convert(&self, unit: Units) -> Result<Self, RuntimeUnitError>
where Self: Sized,

Attempt to convert the unit given in unit to a UnitType. Base unit validation is made here.
Source§

impl FixedSliceQuantity<LuminanceUnit, f64> for LuminanceVec

Source§

fn unit(&self) -> LuminanceUnit

Return unit associated with this quantity
Source§

fn values(&self) -> &[f64]

Return values in quantity
Source§

fn values_mut(&mut self) -> &mut [f64]

Return mutable values in quantity
Source§

fn len(&self) -> usize

Return number of values in quantity
Source§

fn convert(&self, unit: LuminanceUnit) -> Self

Convert a unit of one UnitType to another of the same type. No validation of base unit is made.
Source§

fn convert_mut(&mut self, unit: LuminanceUnit)

Mutate current quantity, convering a unit of one UnitType to another of the same type. No validation of base unit is made.
Source§

fn try_convert(&self, unit: Units) -> Result<Self, RuntimeUnitError>
where Self: Sized,

Attempt to convert the unit given in unit to a UnitType. Base unit validation is made here.
Source§

impl From<LuminanceUnit> for UnitDefinition

Source§

fn from(value: LuminanceUnit) -> Self

Converts to this type from the input type.
Source§

impl From<LuminanceUnit> for Units

Source§

fn from(value: LuminanceUnit) -> Self

Converts to this type from the input type.
Source§

impl Hash for LuminanceUnit

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for LuminanceUnit

Source§

fn eq(&self, other: &LuminanceUnit) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<&str> for LuminanceUnit

Source§

type Error = &'static str

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

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<UnitDefinition> for LuminanceUnit

Source§

type Error = RuntimeUnitError

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

fn try_from(value: UnitDefinition) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Units> for LuminanceUnit

Source§

type Error = RuntimeUnitError

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

fn try_from(value: Units) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Unit for LuminanceUnit

Source§

fn definition(&self) -> UnitDefinition

Return unit definition for this Unit Type

Source§

fn base() -> UnitBase

Base unit definition
Source§

fn base_unit() -> Self

Base unit for this unit type (e.g. meter for LengthUnit)
Source§

fn try_convert(&self, unit: UnitDefinition) -> Result<f64, RuntimeUnitError>

Try to compute conversion factor from this unit to another.
Source§

fn convert_unchecked(&self, unit: Self) -> f64

Compute conversion factor from this unit to another (no check of unit compatibility is made).
Source§

impl Copy for LuminanceUnit

Source§

impl Eq for LuminanceUnit

Source§

impl StructuralPartialEq for LuminanceUnit

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.