pub struct Dielectric {
pub ref_idx: f64,
}Expand description
Dielectric (refractive) material (glass, water, diamond, etc.).
Fields§
§ref_idx: f64Index of refraction (air ≈ 1.0, glass ≈ 1.3–1.7, diamond ≈ 2.4).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dielectric
impl RefUnwindSafe for Dielectric
impl Send for Dielectric
impl Sync for Dielectric
impl Unpin for Dielectric
impl UnwindSafe for Dielectric
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