pub struct FullSpectrumSourceList {
pub sources: Vec<FullSpectrumPointSource>,
}Fields§
§sources: Vec<FullSpectrumPointSource>Implementations§
Source§impl FullSpectrumSourceList
impl FullSpectrumSourceList
pub fn new_from(sources: Vec<FullSpectrumPointSource>) -> FullSpectrumSourceList
pub fn new_empty(capacity: usize) -> FullSpectrumSourceList
pub fn add_source( &mut self, source: FullSpectrumPointSource, ) -> &mut FullSpectrumSourceList
pub fn full_spectrum_point_source_field( number_of_point_sources: usize, min_brightness: f64, max_brightness: f64, spectrum: PowerSpectrum, grid: &GRID2D, ) -> FullSpectrumSourceList
pub fn apply_spatial_effect(&mut self, effect: SpatialEffect)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FullSpectrumSourceList
impl RefUnwindSafe for FullSpectrumSourceList
impl Send for FullSpectrumSourceList
impl Sync for FullSpectrumSourceList
impl Unpin for FullSpectrumSourceList
impl UnsafeUnpin for FullSpectrumSourceList
impl UnwindSafe for FullSpectrumSourceList
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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