Struct ForecastPeriod
pub struct ForecastPeriod(/* private fields */);Expand description
A non-empty descriptive forecast period label.
Implementations§
§impl ForecastPeriod
impl ForecastPeriod
pub fn new(value: impl AsRef<str>) -> Result<ForecastPeriod, ForecastValueError>
pub fn new(value: impl AsRef<str>) -> Result<ForecastPeriod, ForecastValueError>
Creates a forecast period label from non-empty text.
§Errors
Returns ForecastValueError::EmptyForecastPeriod when the period is empty.
Trait Implementations§
§impl Clone for ForecastPeriod
impl Clone for ForecastPeriod
§fn clone(&self) -> ForecastPeriod
fn clone(&self) -> ForecastPeriod
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 more§impl Debug for ForecastPeriod
impl Debug for ForecastPeriod
§impl Display for ForecastPeriod
impl Display for ForecastPeriod
§impl FromStr for ForecastPeriod
impl FromStr for ForecastPeriod
§type Err = ForecastValueError
type Err = ForecastValueError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<ForecastPeriod, <ForecastPeriod as FromStr>::Err>
fn from_str( value: &str, ) -> Result<ForecastPeriod, <ForecastPeriod as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for ForecastPeriod
impl Hash for ForecastPeriod
§impl Ord for ForecastPeriod
impl Ord for ForecastPeriod
§impl PartialEq for ForecastPeriod
impl PartialEq for ForecastPeriod
§impl PartialOrd for ForecastPeriod
impl PartialOrd for ForecastPeriod
impl Eq for ForecastPeriod
impl StructuralPartialEq for ForecastPeriod
Auto Trait Implementations§
impl Freeze for ForecastPeriod
impl RefUnwindSafe for ForecastPeriod
impl Send for ForecastPeriod
impl Sync for ForecastPeriod
impl Unpin for ForecastPeriod
impl UnsafeUnpin for ForecastPeriod
impl UnwindSafe for ForecastPeriod
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