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
impl LuminanceUnit
pub fn get_yottacandela_per_square_meter() -> UnitDefinition
pub fn get_zettacandela_per_square_meter() -> UnitDefinition
pub fn get_exacandela_per_square_meter() -> UnitDefinition
pub fn get_petacandela_per_square_meter() -> UnitDefinition
pub fn get_teracandela_per_square_meter() -> UnitDefinition
pub fn get_gigacandela_per_square_meter() -> UnitDefinition
pub fn get_megacandela_per_square_meter() -> UnitDefinition
pub fn get_kilocandela_per_square_meter() -> UnitDefinition
pub fn get_hectocandela_per_square_meter() -> UnitDefinition
pub fn get_decacandela_per_square_meter() -> UnitDefinition
pub fn get_candela_per_square_meter() -> UnitDefinition
pub fn get_decicandela_per_square_meter() -> UnitDefinition
pub fn get_centicandela_per_square_meter() -> UnitDefinition
pub fn get_millicandela_per_square_meter() -> UnitDefinition
pub fn get_microcandela_per_square_meter() -> UnitDefinition
pub fn get_nanocandela_per_square_meter() -> UnitDefinition
pub fn get_picocandela_per_square_meter() -> UnitDefinition
pub fn get_femtocandela_per_square_meter() -> UnitDefinition
pub fn get_attocandela_per_square_meter() -> UnitDefinition
pub fn get_zeptocandela_per_square_meter() -> UnitDefinition
pub fn get_yoctocandela_per_square_meter() -> UnitDefinition
pub fn get_candela_per_square_picometer() -> UnitDefinition
pub fn get_candela_per_square_nanometer() -> UnitDefinition
pub fn get_candela_per_square_micrometer() -> UnitDefinition
pub fn get_candela_per_square_millimeter() -> UnitDefinition
pub fn get_candela_per_square_centimeter() -> UnitDefinition
pub fn get_candela_per_square_kilometer() -> UnitDefinition
pub fn get_candela_per_square_megameter() -> UnitDefinition
pub fn get_candela_per_square_gigameter() -> UnitDefinition
pub fn get_candela_per_square_terameter() -> UnitDefinition
pub fn get_candela_per_square_inch() -> UnitDefinition
pub fn get_candela_per_square_foot() -> UnitDefinition
pub fn get_footlambert() -> UnitDefinition
pub fn get_lambert() -> UnitDefinition
pub fn get_stilb() -> UnitDefinition
Sourcepub const fn multiplier(&self) -> f64
pub const fn multiplier(&self) -> f64
Multiplier of unit to its base quantity.
Sourcepub fn abbreviation(&self) -> &'static str
pub fn abbreviation(&self) -> &'static str
Abbreviation of unit.
Trait Implementations§
Source§impl Clone for LuminanceUnit
impl Clone for LuminanceUnit
Source§fn clone(&self) -> LuminanceUnit
fn clone(&self) -> LuminanceUnit
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LuminanceUnit
impl Debug for LuminanceUnit
Source§impl Default for LuminanceUnit
impl Default for LuminanceUnit
Source§impl Display for LuminanceUnit
impl Display for LuminanceUnit
Source§impl FixedQuantity<LuminanceUnit> for Luminance
impl FixedQuantity<LuminanceUnit> for Luminance
Source§fn unit(&self) -> LuminanceUnit
fn unit(&self) -> LuminanceUnit
Return unit associated with this quantity
Source§fn convert(&self, unit: LuminanceUnit) -> Self
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)
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
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,
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>
impl<const N: usize> FixedSliceQuantity<LuminanceUnit, f64> for LuminanceArray<N>
Source§fn unit(&self) -> LuminanceUnit
fn unit(&self) -> LuminanceUnit
Return unit associated with this quantity
Source§fn values_mut(&mut self) -> &mut [f64]
fn values_mut(&mut self) -> &mut [f64]
Return mutable values in quantity
Source§fn convert(&self, unit: LuminanceUnit) -> Self
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)
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,
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
impl FixedSliceQuantity<LuminanceUnit, f64> for LuminanceVec
Source§fn unit(&self) -> LuminanceUnit
fn unit(&self) -> LuminanceUnit
Return unit associated with this quantity
Source§fn values_mut(&mut self) -> &mut [f64]
fn values_mut(&mut self) -> &mut [f64]
Return mutable values in quantity
Source§fn convert(&self, unit: LuminanceUnit) -> Self
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)
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,
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
impl From<LuminanceUnit> for UnitDefinition
Source§fn from(value: LuminanceUnit) -> Self
fn from(value: LuminanceUnit) -> Self
Converts to this type from the input type.
Source§impl From<LuminanceUnit> for Units
impl From<LuminanceUnit> for Units
Source§fn from(value: LuminanceUnit) -> Self
fn from(value: LuminanceUnit) -> Self
Converts to this type from the input type.
Source§impl Hash for LuminanceUnit
impl Hash for LuminanceUnit
Source§impl PartialEq for LuminanceUnit
impl PartialEq for LuminanceUnit
Source§impl TryFrom<&str> for LuminanceUnit
impl TryFrom<&str> for LuminanceUnit
Source§impl TryFrom<UnitDefinition> for LuminanceUnit
impl TryFrom<UnitDefinition> for LuminanceUnit
Source§type Error = RuntimeUnitError
type Error = RuntimeUnitError
The type returned in the event of a conversion error.
Source§impl TryFrom<Units> for LuminanceUnit
impl TryFrom<Units> for LuminanceUnit
Source§impl Unit for LuminanceUnit
impl Unit for LuminanceUnit
Source§fn definition(&self) -> UnitDefinition
fn definition(&self) -> UnitDefinition
Return unit definition for this Unit Type
Source§fn try_convert(&self, unit: UnitDefinition) -> Result<f64, RuntimeUnitError>
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
fn convert_unchecked(&self, unit: Self) -> f64
Compute conversion factor from this unit to another (no check of unit compatibility is made).
impl Copy for LuminanceUnit
impl Eq for LuminanceUnit
impl StructuralPartialEq for LuminanceUnit
Auto Trait Implementations§
impl Freeze for LuminanceUnit
impl RefUnwindSafe for LuminanceUnit
impl Send for LuminanceUnit
impl Sync for LuminanceUnit
impl Unpin for LuminanceUnit
impl UnwindSafe for LuminanceUnit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more