pub struct RefractiveIndexSpec {
pub real: RealSpec,
pub imag: Option<ImagSpec>,
}Expand description
Specifies the refractive index of the material constituting a gap.
Fields§
§real: RealSpec§imag: Option<ImagSpec>Implementations§
Source§impl RefractiveIndexSpec
impl RefractiveIndexSpec
pub fn depends_on_wavelength(&self) -> bool
pub fn is_constant(&self) -> bool
pub fn from_real_refractive_index(n: f64) -> Self
Trait Implementations§
Source§impl Clone for RefractiveIndexSpec
impl Clone for RefractiveIndexSpec
Source§fn clone(&self) -> RefractiveIndexSpec
fn clone(&self) -> RefractiveIndexSpec
Returns a duplicate 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 RefractiveIndexSpec
impl Debug for RefractiveIndexSpec
Source§impl<'de> Deserialize<'de> for RefractiveIndexSpec
impl<'de> Deserialize<'de> for RefractiveIndexSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RefractiveIndexSpec
impl RefUnwindSafe for RefractiveIndexSpec
impl Send for RefractiveIndexSpec
impl Sync for RefractiveIndexSpec
impl Unpin for RefractiveIndexSpec
impl UnwindSafe for RefractiveIndexSpec
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