Skip to main content

ScatterDir

Enum ScatterDir 

Source
pub enum ScatterDir {
    Unknown,
    Forward,
    Side,
    Backward,
}
Expand description

Scattering direction relative to incident direction.

Direction is determined by scattering angle θ:

  • Forward: 0 ≤ θ < 30deg
  • Side: 30deg ≤ θ < 150deg
  • Backward: 150deg ≤ θ ≤ 180deg
  • Unknown: No constraint

Variants§

§

Unknown

§

Forward

§

Side

§

Backward

Implementations§

Source§

impl ScatterDir

Source

pub fn new() -> Self

Source

pub fn from(theta: f64) -> Self

Source

pub fn from_with_spec(theta: f64, intervals: [f64; 4]) -> Self

Trait Implementations§

Source§

impl Debug for ScatterDir

Source§

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

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

impl Decode<u32> for ScatterDir

Source§

fn decode(raw: u32) -> Self
where Self: Sized,

Source§

impl Default for ScatterDir

Source§

fn default() -> ScatterDir

Returns the “default value” for a type. Read more
Source§

impl Encode<u32> for ScatterDir

Source§

fn encode(&self) -> u32

Source§

impl PartialEq for ScatterDir

Source§

fn eq(&self, other: &ScatterDir) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ScatterDir

Auto Trait Implementations§

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> 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, 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.