pub enum MultiColorTimeSeries<'a, P: PassbandTrait, T: Float> {
Mapping(MappedMultiColorTimeSeries<'a, P, T>),
Flat(FlatMultiColorTimeSeries<'a, P, T>),
MappingFlat {
mapping: MappedMultiColorTimeSeries<'a, P, T>,
flat: FlatMultiColorTimeSeries<'a, P, T>,
},
}Variants§
Implementations§
Source§impl<'a, P, T> MultiColorTimeSeries<'a, P, T>where
P: PassbandTrait,
T: Float,
impl<'a, P, T> MultiColorTimeSeries<'a, P, T>where
P: PassbandTrait,
T: Float,
pub fn total_lenu(&self) -> usize
pub fn total_lenf(&self) -> T
pub fn passband_count(&self) -> usize
pub fn from_map(map: impl Into<BTreeMap<P, TimeSeries<'a, T>>>) -> Self
pub fn from_flat( t: impl Into<DataSample<'a, T>>, m: impl Into<DataSample<'a, T>>, w: impl Into<DataSample<'a, T>>, passbands: impl Into<Vec<P>>, ) -> Self
pub fn mapping_mut(&mut self) -> &mut MappedMultiColorTimeSeries<'a, P, T>
pub fn mapping(&self) -> Option<&MappedMultiColorTimeSeries<'a, P, T>>
pub fn flat_mut(&mut self) -> &mut FlatMultiColorTimeSeries<'a, P, T>
pub fn flat(&self) -> Option<&FlatMultiColorTimeSeries<'a, P, T>>
pub fn passbands<'slf>(
&'slf self,
) -> Either<Keys<'slf, P, TimeSeries<'a, T>>, Iter<'slf, P>>where
'a: 'slf,
Sourcepub fn insert(
&mut self,
passband: P,
ts: TimeSeries<'a, T>,
) -> Option<TimeSeries<'a, T>>
pub fn insert( &mut self, passband: P, ts: TimeSeries<'a, T>, ) -> Option<TimeSeries<'a, T>>
Inserts new pair of passband and time series into the multicolor time series.
It always converts MultiColorTimeSeries to MultiColorTimeSeries::Mapping variant. Also it replaces existing time series if passband is already present, and returns old time series.
Trait Implementations§
Source§impl<'a, P: Clone + PassbandTrait, T: Clone + Float> Clone for MultiColorTimeSeries<'a, P, T>
impl<'a, P: Clone + PassbandTrait, T: Clone + Float> Clone for MultiColorTimeSeries<'a, P, T>
Source§fn clone(&self) -> MultiColorTimeSeries<'a, P, T>
fn clone(&self) -> MultiColorTimeSeries<'a, P, T>
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<'a, P: Debug + PassbandTrait, T: Debug + Float> Debug for MultiColorTimeSeries<'a, P, T>
impl<'a, P: Debug + PassbandTrait, T: Debug + Float> Debug for MultiColorTimeSeries<'a, P, T>
Source§impl<'a, P, T> Default for MultiColorTimeSeries<'a, P, T>where
P: PassbandTrait,
T: Float,
impl<'a, P, T> Default for MultiColorTimeSeries<'a, P, T>where
P: PassbandTrait,
T: Float,
Auto Trait Implementations§
impl<'a, P, T> Freeze for MultiColorTimeSeries<'a, P, T>
impl<'a, P, T> RefUnwindSafe for MultiColorTimeSeries<'a, P, T>
impl<'a, P, T> Send for MultiColorTimeSeries<'a, P, T>
impl<'a, P, T> Sync for MultiColorTimeSeries<'a, P, T>
impl<'a, P, T> Unpin for MultiColorTimeSeries<'a, P, T>
impl<'a, P, T> UnsafeUnpin for MultiColorTimeSeries<'a, P, T>
impl<'a, P, T> UnwindSafe for MultiColorTimeSeries<'a, P, T>
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.
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