Skip to main content

LayerCoeffs

Struct LayerCoeffs 

Source
pub struct LayerCoeffs<T: Real> {
    pub chi_o: Complex<T>,
    pub chi_e: Complex<T>,
    pub thickness: T,
    pub sigma: T,
}
Expand description

Per-slab coefficients consumed by the uniaxial kernel.

This is the device-uploadable layer record: only the ordinary and extraordinary Berreman components of a uniaxial-z slab enter the closed-form eigenstructure, so the full 3x3 tensor is not carried. Components are stored as susceptibilities chi = eps - 1 rather than eps because soft X-ray |chi| is O(1e-3): packing 1 + chi into a single-precision word would discard roughly three significant digits of the optical constants before any arithmetic happens.

Fields§

§chi_o: Complex<T>

Ordinary susceptibility eps_xx - 1 = eps_yy - 1 (dimensionless).

§chi_e: Complex<T>

Extraordinary susceptibility eps_zz - 1 (dimensionless).

§thickness: T

Slab thickness in Angstroms. Ignored for the fronting and backing rows.

§sigma: T

Nevot-Croce roughness of the interface above this slab, in Angstroms.

Trait Implementations§

Source§

impl<T: Clone + Real> Clone for LayerCoeffs<T>

Source§

fn clone(&self) -> LayerCoeffs<T>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Copy + Real> Copy for LayerCoeffs<T>

Source§

impl<T: Debug + Real> Debug for LayerCoeffs<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: PartialEq + Real> PartialEq for LayerCoeffs<T>

Source§

fn eq(&self, other: &LayerCoeffs<T>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<T: PartialEq + Real> StructuralPartialEq for LayerCoeffs<T>

Auto Trait Implementations§

§

impl<T> Freeze for LayerCoeffs<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for LayerCoeffs<T>
where T: RefUnwindSafe,

§

impl<T> Send for LayerCoeffs<T>

§

impl<T> Sync for LayerCoeffs<T>

§

impl<T> Unpin for LayerCoeffs<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for LayerCoeffs<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for LayerCoeffs<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.