#[non_exhaustive]pub enum Trend {
Rising,
Stable,
Falling,
}Expand description
Trend direction
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
impl Copy for Trend
Source§impl<'de> Deserialize<'de> for Trend
impl<'de> Deserialize<'de> for Trend
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Trend, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Trend, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Trend
Source§impl Serialize for Trend
impl Serialize for Trend
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Trend
Auto Trait Implementations§
impl Freeze for Trend
impl RefUnwindSafe for Trend
impl Send for Trend
impl Sync for Trend
impl Unpin for Trend
impl UnsafeUnpin for Trend
impl UnwindSafe for Trend
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