#[non_exhaustive]#[repr(u8)]pub enum WeatherReport {
Current = 0,
Forecast = 1,
DailyForecast = 2,
}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.
Implementations§
Source§impl WeatherReport
impl WeatherReport
Trait Implementations§
Source§impl Clone for WeatherReport
impl Clone for WeatherReport
Source§fn clone(&self) -> WeatherReport
fn clone(&self) -> WeatherReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeatherReport
impl Debug for WeatherReport
Source§impl Hash for WeatherReport
impl Hash for WeatherReport
Source§impl PartialEq for WeatherReport
impl PartialEq for WeatherReport
Source§fn eq(&self, other: &WeatherReport) -> bool
fn eq(&self, other: &WeatherReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WeatherReport
impl Eq for WeatherReport
impl StructuralPartialEq for WeatherReport
Auto Trait Implementations§
impl Freeze for WeatherReport
impl RefUnwindSafe for WeatherReport
impl Send for WeatherReport
impl Sync for WeatherReport
impl Unpin for WeatherReport
impl UnsafeUnpin for WeatherReport
impl UnwindSafe for WeatherReport
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