Enum light_curve_feature::Feature
source · [−]#[non_exhaustive]
pub enum Feature<T> where
T: Float, {
Show 37 variants
FeatureExtractor(FeatureExtractor<T, Self>),
Amplitude(Amplitude),
AndersonDarlingNormal(AndersonDarlingNormal),
Bins(Bins<T, Self>),
BazinFit(BazinFit),
BeyondNStd(BeyondNStd<T>),
Cusum(Cusum),
Duration(Duration),
Eta(Eta),
EtaE(EtaE),
ExcessVariance(ExcessVariance),
InterPercentileRange(InterPercentileRange),
Kurtosis(Kurtosis),
LinearFit(LinearFit),
LinearTrend(LinearTrend),
MagnitudePercentageRatio(MagnitudePercentageRatio),
MaximumSlope(MaximumSlope),
MaximumTimeInterval(MaximumTimeInterval),
MinimumTimeInterval(MinimumTimeInterval),
Mean(Mean),
MeanVariance(MeanVariance),
Median(Median),
MedianAbsoluteDeviation(MedianAbsoluteDeviation),
MedianBufferRangePercentage(MedianBufferRangePercentage<T>),
ObservationCount(ObservationCount),
PercentAmplitude(PercentAmplitude),
PercentDifferenceMagnitudePercentile(PercentDifferenceMagnitudePercentile),
Periodogram(Periodogram<T, Self>),
_PeriodogramPeaks(_PeriodogramPeaks),
ReducedChi2(ReducedChi2),
Skew(Skew),
StandardDeviation(StandardDeviation),
StetsonK(StetsonK),
TimeMean(TimeMean),
TimeStandardDeviation(TimeStandardDeviation),
VillarFit(VillarFit),
WeightedMean(WeightedMean),
}
Expand description
All features are available as variants of this enum
Consider to import crate::FeatureEvaluator as well
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
FeatureExtractor(FeatureExtractor<T, Self>)
Amplitude(Amplitude)
AndersonDarlingNormal(AndersonDarlingNormal)
Bins(Bins<T, Self>)
BazinFit(BazinFit)
BeyondNStd(BeyondNStd<T>)
Cusum(Cusum)
Duration(Duration)
Eta(Eta)
EtaE(EtaE)
ExcessVariance(ExcessVariance)
InterPercentileRange(InterPercentileRange)
Kurtosis(Kurtosis)
LinearFit(LinearFit)
LinearTrend(LinearTrend)
MagnitudePercentageRatio(MagnitudePercentageRatio)
MaximumSlope(MaximumSlope)
MaximumTimeInterval(MaximumTimeInterval)
MinimumTimeInterval(MinimumTimeInterval)
Mean(Mean)
MeanVariance(MeanVariance)
Median(Median)
MedianAbsoluteDeviation(MedianAbsoluteDeviation)
MedianBufferRangePercentage(MedianBufferRangePercentage<T>)
ObservationCount(ObservationCount)
PercentAmplitude(PercentAmplitude)
PercentDifferenceMagnitudePercentile(PercentDifferenceMagnitudePercentile)
Periodogram(Periodogram<T, Self>)
_PeriodogramPeaks(_PeriodogramPeaks)
ReducedChi2(ReducedChi2)
Skew(Skew)
StandardDeviation(StandardDeviation)
StetsonK(StetsonK)
TimeMean(TimeMean)
TimeStandardDeviation(TimeStandardDeviation)
VillarFit(VillarFit)
WeightedMean(WeightedMean)
Trait Implementations
sourceimpl<'de, T> Deserialize<'de> for Feature<T> where
T: Float,
T: Float,
impl<'de, T> Deserialize<'de> for Feature<T> where
T: Float,
T: Float,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T> EvaluatorInfoTrait for Feature<T> where
T: Float,
impl<T> EvaluatorInfoTrait for Feature<T> where
T: Float,
sourcefn size_hint(&self) -> usize
fn size_hint(&self) -> usize
Size of vectors returned by eval(), get_names() and get_descriptions()
sourcefn min_ts_length(&self) -> usize
fn min_ts_length(&self) -> usize
Minimum time series length required to successfully evaluate feature
sourcefn is_t_required(&self) -> bool
fn is_t_required(&self) -> bool
If time array used by the feature
sourcefn is_m_required(&self) -> bool
fn is_m_required(&self) -> bool
If magnitude array is used by the feature
sourcefn is_w_required(&self) -> bool
fn is_w_required(&self) -> bool
If weight array is used by the feature
sourcefn is_sorting_required(&self) -> bool
fn is_sorting_required(&self) -> bool
If feature requires time-sorting on the input TimeSeries
sourceimpl<T> FeatureEvaluator<T> for Feature<T> where
T: Float,
impl<T> FeatureEvaluator<T> for Feature<T> where
T: Float,
sourcefn eval(
&self,
__enum_dispatch_arg_0: &mut TimeSeries<'_, T>
) -> Result<Vec<T>, EvaluatorError>
fn eval(
&self,
__enum_dispatch_arg_0: &mut TimeSeries<'_, T>
) -> Result<Vec<T>, EvaluatorError>
Vector of feature values or EvaluatorError
sourcefn eval_or_fill(
&self,
__enum_dispatch_arg_0: &mut TimeSeries<'_, T>,
__enum_dispatch_arg_1: T
) -> Vec<T>
fn eval_or_fill(
&self,
__enum_dispatch_arg_0: &mut TimeSeries<'_, T>,
__enum_dispatch_arg_1: T
) -> Vec<T>
Returns vector of feature values and fill invalid components with given value
sourcefn check_ts_length(
&self,
__enum_dispatch_arg_0: &TimeSeries<'_, T>
) -> Result<usize, EvaluatorError>
fn check_ts_length(
&self,
__enum_dispatch_arg_0: &TimeSeries<'_, T>
) -> Result<usize, EvaluatorError>
Checks if TimeSeries has enough points to evaluate the feature
sourceimpl<T> FeatureNamesDescriptionsTrait for Feature<T> where
T: Float,
impl<T> FeatureNamesDescriptionsTrait for Feature<T> where
T: Float,
sourceimpl<T> From<AndersonDarlingNormal> for Feature<T> where
T: Float,
impl<T> From<AndersonDarlingNormal> for Feature<T> where
T: Float,
sourcefn from(v: AndersonDarlingNormal) -> Feature<T>
fn from(v: AndersonDarlingNormal) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<BeyondNStd<T>> for Feature<T> where
T: Float,
impl<T> From<BeyondNStd<T>> for Feature<T> where
T: Float,
sourcefn from(v: BeyondNStd<T>) -> Feature<T>
fn from(v: BeyondNStd<T>) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<ExcessVariance> for Feature<T> where
T: Float,
impl<T> From<ExcessVariance> for Feature<T> where
T: Float,
sourcefn from(v: ExcessVariance) -> Feature<T>
fn from(v: ExcessVariance) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<FeatureExtractor<T, Feature<T>>> for Feature<T> where
T: Float,
impl<T> From<FeatureExtractor<T, Feature<T>>> for Feature<T> where
T: Float,
sourcefn from(v: FeatureExtractor<T, Self>) -> Feature<T>
fn from(v: FeatureExtractor<T, Self>) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<InterPercentileRange> for Feature<T> where
T: Float,
impl<T> From<InterPercentileRange> for Feature<T> where
T: Float,
sourcefn from(v: InterPercentileRange) -> Feature<T>
fn from(v: InterPercentileRange) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<LinearTrend> for Feature<T> where
T: Float,
impl<T> From<LinearTrend> for Feature<T> where
T: Float,
sourcefn from(v: LinearTrend) -> Feature<T>
fn from(v: LinearTrend) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<MagnitudePercentageRatio> for Feature<T> where
T: Float,
impl<T> From<MagnitudePercentageRatio> for Feature<T> where
T: Float,
sourcefn from(v: MagnitudePercentageRatio) -> Feature<T>
fn from(v: MagnitudePercentageRatio) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<MaximumSlope> for Feature<T> where
T: Float,
impl<T> From<MaximumSlope> for Feature<T> where
T: Float,
sourcefn from(v: MaximumSlope) -> Feature<T>
fn from(v: MaximumSlope) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<MaximumTimeInterval> for Feature<T> where
T: Float,
impl<T> From<MaximumTimeInterval> for Feature<T> where
T: Float,
sourcefn from(v: MaximumTimeInterval) -> Feature<T>
fn from(v: MaximumTimeInterval) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<MeanVariance> for Feature<T> where
T: Float,
impl<T> From<MeanVariance> for Feature<T> where
T: Float,
sourcefn from(v: MeanVariance) -> Feature<T>
fn from(v: MeanVariance) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<MedianAbsoluteDeviation> for Feature<T> where
T: Float,
impl<T> From<MedianAbsoluteDeviation> for Feature<T> where
T: Float,
sourcefn from(v: MedianAbsoluteDeviation) -> Feature<T>
fn from(v: MedianAbsoluteDeviation) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<MedianBufferRangePercentage<T>> for Feature<T> where
T: Float,
impl<T> From<MedianBufferRangePercentage<T>> for Feature<T> where
T: Float,
sourcefn from(v: MedianBufferRangePercentage<T>) -> Feature<T>
fn from(v: MedianBufferRangePercentage<T>) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<MinimumTimeInterval> for Feature<T> where
T: Float,
impl<T> From<MinimumTimeInterval> for Feature<T> where
T: Float,
sourcefn from(v: MinimumTimeInterval) -> Feature<T>
fn from(v: MinimumTimeInterval) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<ObservationCount> for Feature<T> where
T: Float,
impl<T> From<ObservationCount> for Feature<T> where
T: Float,
sourcefn from(v: ObservationCount) -> Feature<T>
fn from(v: ObservationCount) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<PercentAmplitude> for Feature<T> where
T: Float,
impl<T> From<PercentAmplitude> for Feature<T> where
T: Float,
sourcefn from(v: PercentAmplitude) -> Feature<T>
fn from(v: PercentAmplitude) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<PercentDifferenceMagnitudePercentile> for Feature<T> where
T: Float,
impl<T> From<PercentDifferenceMagnitudePercentile> for Feature<T> where
T: Float,
sourcefn from(v: PercentDifferenceMagnitudePercentile) -> Feature<T>
fn from(v: PercentDifferenceMagnitudePercentile) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<Periodogram<T, Feature<T>>> for Feature<T> where
T: Float,
impl<T> From<Periodogram<T, Feature<T>>> for Feature<T> where
T: Float,
sourcefn from(v: Periodogram<T, Self>) -> Feature<T>
fn from(v: Periodogram<T, Self>) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<ReducedChi2> for Feature<T> where
T: Float,
impl<T> From<ReducedChi2> for Feature<T> where
T: Float,
sourcefn from(v: ReducedChi2) -> Feature<T>
fn from(v: ReducedChi2) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<StandardDeviation> for Feature<T> where
T: Float,
impl<T> From<StandardDeviation> for Feature<T> where
T: Float,
sourcefn from(v: StandardDeviation) -> Feature<T>
fn from(v: StandardDeviation) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<TimeStandardDeviation> for Feature<T> where
T: Float,
impl<T> From<TimeStandardDeviation> for Feature<T> where
T: Float,
sourcefn from(v: TimeStandardDeviation) -> Feature<T>
fn from(v: TimeStandardDeviation) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T> From<WeightedMean> for Feature<T> where
T: Float,
impl<T> From<WeightedMean> for Feature<T> where
T: Float,
sourcefn from(v: WeightedMean) -> Feature<T>
fn from(v: WeightedMean) -> Feature<T>
Converts to this type from the input type.
sourceimpl<T: JsonSchema> JsonSchema for Feature<T> where
T: Float,
impl<T: JsonSchema> JsonSchema for Feature<T> where
T: Float,
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
sourceimpl<T> TryInto<AndersonDarlingNormal> for Feature<T> where
T: Float,
impl<T> TryInto<AndersonDarlingNormal> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<AndersonDarlingNormal, <Self as TryInto<AndersonDarlingNormal>>::Error>
fn try_into(
self
) -> Result<AndersonDarlingNormal, <Self as TryInto<AndersonDarlingNormal>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<BeyondNStd<T>> for Feature<T> where
T: Float,
impl<T> TryInto<BeyondNStd<T>> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<BeyondNStd<T>, <Self as TryInto<BeyondNStd<T>>>::Error>
fn try_into(
self
) -> Result<BeyondNStd<T>, <Self as TryInto<BeyondNStd<T>>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<ExcessVariance> for Feature<T> where
T: Float,
impl<T> TryInto<ExcessVariance> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<ExcessVariance, <Self as TryInto<ExcessVariance>>::Error>
fn try_into(
self
) -> Result<ExcessVariance, <Self as TryInto<ExcessVariance>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<FeatureExtractor<T, Feature<T>>> for Feature<T> where
T: Float,
impl<T> TryInto<FeatureExtractor<T, Feature<T>>> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<FeatureExtractor<T, Self>, <Self as TryInto<FeatureExtractor<T, Self>>>::Error>
fn try_into(
self
) -> Result<FeatureExtractor<T, Self>, <Self as TryInto<FeatureExtractor<T, Self>>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<InterPercentileRange> for Feature<T> where
T: Float,
impl<T> TryInto<InterPercentileRange> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<InterPercentileRange, <Self as TryInto<InterPercentileRange>>::Error>
fn try_into(
self
) -> Result<InterPercentileRange, <Self as TryInto<InterPercentileRange>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<LinearTrend> for Feature<T> where
T: Float,
impl<T> TryInto<LinearTrend> for Feature<T> where
T: Float,
sourcefn try_into(self) -> Result<LinearTrend, <Self as TryInto<LinearTrend>>::Error>
fn try_into(self) -> Result<LinearTrend, <Self as TryInto<LinearTrend>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<MagnitudePercentageRatio> for Feature<T> where
T: Float,
impl<T> TryInto<MagnitudePercentageRatio> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<MagnitudePercentageRatio, <Self as TryInto<MagnitudePercentageRatio>>::Error>
fn try_into(
self
) -> Result<MagnitudePercentageRatio, <Self as TryInto<MagnitudePercentageRatio>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<MaximumSlope> for Feature<T> where
T: Float,
impl<T> TryInto<MaximumSlope> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<MaximumSlope, <Self as TryInto<MaximumSlope>>::Error>
fn try_into(
self
) -> Result<MaximumSlope, <Self as TryInto<MaximumSlope>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<MaximumTimeInterval> for Feature<T> where
T: Float,
impl<T> TryInto<MaximumTimeInterval> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<MaximumTimeInterval, <Self as TryInto<MaximumTimeInterval>>::Error>
fn try_into(
self
) -> Result<MaximumTimeInterval, <Self as TryInto<MaximumTimeInterval>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<MeanVariance> for Feature<T> where
T: Float,
impl<T> TryInto<MeanVariance> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<MeanVariance, <Self as TryInto<MeanVariance>>::Error>
fn try_into(
self
) -> Result<MeanVariance, <Self as TryInto<MeanVariance>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<MedianAbsoluteDeviation> for Feature<T> where
T: Float,
impl<T> TryInto<MedianAbsoluteDeviation> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<MedianAbsoluteDeviation, <Self as TryInto<MedianAbsoluteDeviation>>::Error>
fn try_into(
self
) -> Result<MedianAbsoluteDeviation, <Self as TryInto<MedianAbsoluteDeviation>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<MedianBufferRangePercentage<T>> for Feature<T> where
T: Float,
impl<T> TryInto<MedianBufferRangePercentage<T>> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<MedianBufferRangePercentage<T>, <Self as TryInto<MedianBufferRangePercentage<T>>>::Error>
fn try_into(
self
) -> Result<MedianBufferRangePercentage<T>, <Self as TryInto<MedianBufferRangePercentage<T>>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<MinimumTimeInterval> for Feature<T> where
T: Float,
impl<T> TryInto<MinimumTimeInterval> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<MinimumTimeInterval, <Self as TryInto<MinimumTimeInterval>>::Error>
fn try_into(
self
) -> Result<MinimumTimeInterval, <Self as TryInto<MinimumTimeInterval>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<ObservationCount> for Feature<T> where
T: Float,
impl<T> TryInto<ObservationCount> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<ObservationCount, <Self as TryInto<ObservationCount>>::Error>
fn try_into(
self
) -> Result<ObservationCount, <Self as TryInto<ObservationCount>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<PercentAmplitude> for Feature<T> where
T: Float,
impl<T> TryInto<PercentAmplitude> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<PercentAmplitude, <Self as TryInto<PercentAmplitude>>::Error>
fn try_into(
self
) -> Result<PercentAmplitude, <Self as TryInto<PercentAmplitude>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<PercentDifferenceMagnitudePercentile> for Feature<T> where
T: Float,
impl<T> TryInto<PercentDifferenceMagnitudePercentile> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<PercentDifferenceMagnitudePercentile, <Self as TryInto<PercentDifferenceMagnitudePercentile>>::Error>
fn try_into(
self
) -> Result<PercentDifferenceMagnitudePercentile, <Self as TryInto<PercentDifferenceMagnitudePercentile>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<Periodogram<T, Feature<T>>> for Feature<T> where
T: Float,
impl<T> TryInto<Periodogram<T, Feature<T>>> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<Periodogram<T, Self>, <Self as TryInto<Periodogram<T, Self>>>::Error>
fn try_into(
self
) -> Result<Periodogram<T, Self>, <Self as TryInto<Periodogram<T, Self>>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<ReducedChi2> for Feature<T> where
T: Float,
impl<T> TryInto<ReducedChi2> for Feature<T> where
T: Float,
sourcefn try_into(self) -> Result<ReducedChi2, <Self as TryInto<ReducedChi2>>::Error>
fn try_into(self) -> Result<ReducedChi2, <Self as TryInto<ReducedChi2>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<StandardDeviation> for Feature<T> where
T: Float,
impl<T> TryInto<StandardDeviation> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<StandardDeviation, <Self as TryInto<StandardDeviation>>::Error>
fn try_into(
self
) -> Result<StandardDeviation, <Self as TryInto<StandardDeviation>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<TimeStandardDeviation> for Feature<T> where
T: Float,
impl<T> TryInto<TimeStandardDeviation> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<TimeStandardDeviation, <Self as TryInto<TimeStandardDeviation>>::Error>
fn try_into(
self
) -> Result<TimeStandardDeviation, <Self as TryInto<TimeStandardDeviation>>::Error>
Performs the conversion.
sourceimpl<T> TryInto<WeightedMean> for Feature<T> where
T: Float,
impl<T> TryInto<WeightedMean> for Feature<T> where
T: Float,
sourcefn try_into(
self
) -> Result<WeightedMean, <Self as TryInto<WeightedMean>>::Error>
fn try_into(
self
) -> Result<WeightedMean, <Self as TryInto<WeightedMean>>::Error>
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for Feature<T> where
T: RefUnwindSafe,
impl<T> Send for Feature<T>
impl<T> Sync for Feature<T>
impl<T> Unpin for Feature<T> where
T: Unpin,
impl<T> UnwindSafe for Feature<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
sourcefn 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.
sourceimpl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
sourcefn 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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
sourcefn approx(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
fn approx(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
Approximate the subject with the default scheme.
sourcefn approx_by<Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_by<Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject with a specific scheme.
sourceimpl<T> ConvUtil for T
impl<T> ConvUtil for T
sourcefn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
Approximate the subject to a given type with the default scheme.
sourcefn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.