pub struct Luminance { /* private fields */ }Expand description
Luminance (base UnitDefinition candela per square meter, cd · m⁻²).
Scalar storage of a quantity (f64 and LuminanceUnit).
Implementations§
Source§impl Luminance
impl Luminance
Sourcepub fn new(value: f64, unit: LuminanceUnit) -> Self
pub fn new(value: f64, unit: LuminanceUnit) -> Self
Create a new LuminanceUnit.
Sourcepub fn yottacandela_per_square_meter(value: f64) -> Self
pub fn yottacandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::yottacandela_per_square_meter.
Sourcepub fn zettacandela_per_square_meter(value: f64) -> Self
pub fn zettacandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::zettacandela_per_square_meter.
Sourcepub fn exacandela_per_square_meter(value: f64) -> Self
pub fn exacandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::exacandela_per_square_meter.
Sourcepub fn petacandela_per_square_meter(value: f64) -> Self
pub fn petacandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::petacandela_per_square_meter.
Sourcepub fn teracandela_per_square_meter(value: f64) -> Self
pub fn teracandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::teracandela_per_square_meter.
Sourcepub fn gigacandela_per_square_meter(value: f64) -> Self
pub fn gigacandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::gigacandela_per_square_meter.
Sourcepub fn megacandela_per_square_meter(value: f64) -> Self
pub fn megacandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::megacandela_per_square_meter.
Sourcepub fn kilocandela_per_square_meter(value: f64) -> Self
pub fn kilocandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::kilocandela_per_square_meter.
Sourcepub fn hectocandela_per_square_meter(value: f64) -> Self
pub fn hectocandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::hectocandela_per_square_meter.
Sourcepub fn decacandela_per_square_meter(value: f64) -> Self
pub fn decacandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::decacandela_per_square_meter.
Sourcepub fn candela_per_square_meter(value: f64) -> Self
pub fn candela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_meter.
Sourcepub fn decicandela_per_square_meter(value: f64) -> Self
pub fn decicandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::decicandela_per_square_meter.
Sourcepub fn centicandela_per_square_meter(value: f64) -> Self
pub fn centicandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::centicandela_per_square_meter.
Sourcepub fn millicandela_per_square_meter(value: f64) -> Self
pub fn millicandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::millicandela_per_square_meter.
Sourcepub fn microcandela_per_square_meter(value: f64) -> Self
pub fn microcandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::microcandela_per_square_meter.
Sourcepub fn nanocandela_per_square_meter(value: f64) -> Self
pub fn nanocandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::nanocandela_per_square_meter.
Sourcepub fn picocandela_per_square_meter(value: f64) -> Self
pub fn picocandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::picocandela_per_square_meter.
Sourcepub fn femtocandela_per_square_meter(value: f64) -> Self
pub fn femtocandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::femtocandela_per_square_meter.
Sourcepub fn attocandela_per_square_meter(value: f64) -> Self
pub fn attocandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::attocandela_per_square_meter.
Sourcepub fn zeptocandela_per_square_meter(value: f64) -> Self
pub fn zeptocandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::zeptocandela_per_square_meter.
Sourcepub fn yoctocandela_per_square_meter(value: f64) -> Self
pub fn yoctocandela_per_square_meter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::yoctocandela_per_square_meter.
Sourcepub fn candela_per_square_picometer(value: f64) -> Self
pub fn candela_per_square_picometer(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_picometer.
Sourcepub fn candela_per_square_nanometer(value: f64) -> Self
pub fn candela_per_square_nanometer(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_nanometer.
Sourcepub fn candela_per_square_micrometer(value: f64) -> Self
pub fn candela_per_square_micrometer(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_micrometer.
Sourcepub fn candela_per_square_millimeter(value: f64) -> Self
pub fn candela_per_square_millimeter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_millimeter.
Sourcepub fn candela_per_square_centimeter(value: f64) -> Self
pub fn candela_per_square_centimeter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_centimeter.
Sourcepub fn candela_per_square_kilometer(value: f64) -> Self
pub fn candela_per_square_kilometer(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_kilometer.
Sourcepub fn candela_per_square_megameter(value: f64) -> Self
pub fn candela_per_square_megameter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_megameter.
Sourcepub fn candela_per_square_gigameter(value: f64) -> Self
pub fn candela_per_square_gigameter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_gigameter.
Sourcepub fn candela_per_square_terameter(value: f64) -> Self
pub fn candela_per_square_terameter(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_terameter.
Sourcepub fn candela_per_square_inch(value: f64) -> Self
pub fn candela_per_square_inch(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_inch.
Sourcepub fn candela_per_square_foot(value: f64) -> Self
pub fn candela_per_square_foot(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::candela_per_square_foot.
Sourcepub fn footlambert(value: f64) -> Self
pub fn footlambert(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::footlambert.
Sourcepub fn lambert(value: f64) -> Self
pub fn lambert(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::lambert.
Sourcepub fn stilb(value: f64) -> Self
pub fn stilb(value: f64) -> Self
Create a new Luminance with units of LuminanceUnit::stilb.
Sourcepub fn value_mut(&mut self) -> &mut f64
pub fn value_mut(&mut self) -> &mut f64
Retrieve the mutable value associated with this Luminance.
Sourcepub fn definition(&self) -> UnitDefinition
pub fn definition(&self) -> UnitDefinition
Retrieve the UnitDefinition associated with this Luminance.
Sourcepub fn to_yottacandela_per_square_meter(&self) -> Self
pub fn to_yottacandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::yottacandela_per_square_meter.
Sourcepub fn to_zettacandela_per_square_meter(&self) -> Self
pub fn to_zettacandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::zettacandela_per_square_meter.
Sourcepub fn to_exacandela_per_square_meter(&self) -> Self
pub fn to_exacandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::exacandela_per_square_meter.
Sourcepub fn to_petacandela_per_square_meter(&self) -> Self
pub fn to_petacandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::petacandela_per_square_meter.
Sourcepub fn to_teracandela_per_square_meter(&self) -> Self
pub fn to_teracandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::teracandela_per_square_meter.
Sourcepub fn to_gigacandela_per_square_meter(&self) -> Self
pub fn to_gigacandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::gigacandela_per_square_meter.
Sourcepub fn to_megacandela_per_square_meter(&self) -> Self
pub fn to_megacandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::megacandela_per_square_meter.
Sourcepub fn to_kilocandela_per_square_meter(&self) -> Self
pub fn to_kilocandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::kilocandela_per_square_meter.
Sourcepub fn to_hectocandela_per_square_meter(&self) -> Self
pub fn to_hectocandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::hectocandela_per_square_meter.
Sourcepub fn to_decacandela_per_square_meter(&self) -> Self
pub fn to_decacandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::decacandela_per_square_meter.
Sourcepub fn to_candela_per_square_meter(&self) -> Self
pub fn to_candela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::candela_per_square_meter.
Sourcepub fn to_decicandela_per_square_meter(&self) -> Self
pub fn to_decicandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::decicandela_per_square_meter.
Sourcepub fn to_centicandela_per_square_meter(&self) -> Self
pub fn to_centicandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::centicandela_per_square_meter.
Sourcepub fn to_millicandela_per_square_meter(&self) -> Self
pub fn to_millicandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::millicandela_per_square_meter.
Sourcepub fn to_microcandela_per_square_meter(&self) -> Self
pub fn to_microcandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::microcandela_per_square_meter.
Sourcepub fn to_nanocandela_per_square_meter(&self) -> Self
pub fn to_nanocandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::nanocandela_per_square_meter.
Sourcepub fn to_picocandela_per_square_meter(&self) -> Self
pub fn to_picocandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::picocandela_per_square_meter.
Sourcepub fn to_femtocandela_per_square_meter(&self) -> Self
pub fn to_femtocandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::femtocandela_per_square_meter.
Sourcepub fn to_attocandela_per_square_meter(&self) -> Self
pub fn to_attocandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::attocandela_per_square_meter.
Sourcepub fn to_zeptocandela_per_square_meter(&self) -> Self
pub fn to_zeptocandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::zeptocandela_per_square_meter.
Sourcepub fn to_yoctocandela_per_square_meter(&self) -> Self
pub fn to_yoctocandela_per_square_meter(&self) -> Self
Convert to LuminanceUnit::yoctocandela_per_square_meter.
Sourcepub fn to_candela_per_square_picometer(&self) -> Self
pub fn to_candela_per_square_picometer(&self) -> Self
Convert to LuminanceUnit::candela_per_square_picometer.
Sourcepub fn to_candela_per_square_nanometer(&self) -> Self
pub fn to_candela_per_square_nanometer(&self) -> Self
Convert to LuminanceUnit::candela_per_square_nanometer.
Sourcepub fn to_candela_per_square_micrometer(&self) -> Self
pub fn to_candela_per_square_micrometer(&self) -> Self
Convert to LuminanceUnit::candela_per_square_micrometer.
Sourcepub fn to_candela_per_square_millimeter(&self) -> Self
pub fn to_candela_per_square_millimeter(&self) -> Self
Convert to LuminanceUnit::candela_per_square_millimeter.
Sourcepub fn to_candela_per_square_centimeter(&self) -> Self
pub fn to_candela_per_square_centimeter(&self) -> Self
Convert to LuminanceUnit::candela_per_square_centimeter.
Sourcepub fn to_candela_per_square_kilometer(&self) -> Self
pub fn to_candela_per_square_kilometer(&self) -> Self
Convert to LuminanceUnit::candela_per_square_kilometer.
Sourcepub fn to_candela_per_square_megameter(&self) -> Self
pub fn to_candela_per_square_megameter(&self) -> Self
Convert to LuminanceUnit::candela_per_square_megameter.
Sourcepub fn to_candela_per_square_gigameter(&self) -> Self
pub fn to_candela_per_square_gigameter(&self) -> Self
Convert to LuminanceUnit::candela_per_square_gigameter.
Sourcepub fn to_candela_per_square_terameter(&self) -> Self
pub fn to_candela_per_square_terameter(&self) -> Self
Convert to LuminanceUnit::candela_per_square_terameter.
Sourcepub fn to_candela_per_square_inch(&self) -> Self
pub fn to_candela_per_square_inch(&self) -> Self
Convert to LuminanceUnit::candela_per_square_inch.
Sourcepub fn to_candela_per_square_foot(&self) -> Self
pub fn to_candela_per_square_foot(&self) -> Self
Convert to LuminanceUnit::candela_per_square_foot.
Sourcepub fn to_footlambert(&self) -> Self
pub fn to_footlambert(&self) -> Self
Convert to LuminanceUnit::footlambert.
Sourcepub fn to_lambert(&self) -> Self
pub fn to_lambert(&self) -> Self
Convert to LuminanceUnit::lambert.
Sourcepub fn to_stilb(&self) -> Self
pub fn to_stilb(&self) -> Self
Convert to LuminanceUnit::stilb.
Trait Implementations§
Source§impl AddAssign<Quantity> for Luminance
impl AddAssign<Quantity> for Luminance
Source§fn add_assign(&mut self, rhs: Quantity)
fn add_assign(&mut self, rhs: Quantity)
+= operation. Read moreSource§impl AddAssign for Luminance
impl AddAssign for Luminance
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+= operation. Read moreSource§impl DivAssign<f64> for Luminance
impl DivAssign<f64> for Luminance
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
/= operation. Read moreSource§impl FixedQuantity<LuminanceUnit> for Luminance
impl FixedQuantity<LuminanceUnit> for Luminance
Source§fn unit(&self) -> LuminanceUnit
fn unit(&self) -> LuminanceUnit
Source§fn convert(&self, unit: LuminanceUnit) -> Self
fn convert(&self, unit: LuminanceUnit) -> Self
Source§fn convert_mut(&mut self, unit: LuminanceUnit)
fn convert_mut(&mut self, unit: LuminanceUnit)
Source§fn unit_mut(&mut self) -> &mut LuminanceUnit
fn unit_mut(&mut self) -> &mut LuminanceUnit
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,
Source§impl From<Luminance> for UnitDefinition
impl From<Luminance> for UnitDefinition
Source§impl MulAssign<f64> for Luminance
impl MulAssign<f64> for Luminance
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
*= operation. Read moreSource§impl PartialOrd for Luminance
impl PartialOrd for Luminance
Source§impl SubAssign<Quantity> for Luminance
impl SubAssign<Quantity> for Luminance
Source§fn sub_assign(&mut self, rhs: Quantity)
fn sub_assign(&mut self, rhs: Quantity)
-= operation. Read moreSource§impl SubAssign for Luminance
impl SubAssign for Luminance
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read more