Struct forrust::time_series::season::Season [−][src]
represents a subset of the data
Implementations
impl Season
[src]
pub fn new(series: &TimeSeries, length: usize) -> Self
[src]
Takes a reference to a time series to create a Season from it Also takes the length for that season.
pub fn set_season(self, u: usize) -> Self
[src]
Sets the season to be used
pub fn as_time_series(&self) -> TimeSeries
[src]
pub fn get_range(&self) -> Vec<f64>
[src]
pub fn get_data(&self) -> Vec<(f64, f64)>
[src]
Returns the set of (x, y) points that represent this season
pub fn style(&self) -> Style
[src]
Returns a clone of the current style
pub fn set_style(self, style: Style) -> Self
[src]
Sets the style for this Season plot
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Season
impl Send for Season
impl Sync for Season
impl Unpin for Season
impl UnwindSafe for Season
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,