pub struct Wavelength<R>(/* private fields */)
where
R: RealField;Expand description
Wavelength ($\lambda$). Unit: Meters. Constraint: > 0.
Implementations§
Source§impl<R> Wavelength<R>where
R: RealField,
impl<R> Wavelength<R>where
R: RealField,
pub fn new(val: R) -> Result<Wavelength<R>, PhysicsError>
pub fn new_unchecked(val: R) -> Wavelength<R>
pub fn value(&self) -> R
Trait Implementations§
Source§impl<R> Clone for Wavelength<R>
impl<R> Clone for Wavelength<R>
Source§fn clone(&self) -> Wavelength<R>
fn clone(&self) -> Wavelength<R>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<R> Copy for Wavelength<R>
Source§impl<R> Debug for Wavelength<R>
impl<R> Debug for Wavelength<R>
Source§impl<R> Default for Wavelength<R>where
R: RealField,
impl<R> Default for Wavelength<R>where
R: RealField,
Source§fn default() -> Wavelength<R>
fn default() -> Wavelength<R>
Returns the “default value” for a type. Read more
Source§impl<R> PartialEq for Wavelength<R>
impl<R> PartialEq for Wavelength<R>
Source§impl<R> PartialOrd for Wavelength<R>where
R: PartialOrd + RealField,
impl<R> PartialOrd for Wavelength<R>where
R: PartialOrd + RealField,
impl<R> StructuralPartialEq for Wavelength<R>
Auto Trait Implementations§
impl<R> Freeze for Wavelength<R>where
R: Freeze,
impl<R> RefUnwindSafe for Wavelength<R>where
R: RefUnwindSafe,
impl<R> Send for Wavelength<R>where
R: Send,
impl<R> Sync for Wavelength<R>where
R: Sync,
impl<R> Unpin for Wavelength<R>where
R: Unpin,
impl<R> UnsafeUnpin for Wavelength<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for Wavelength<R>where
R: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more