#[non_exhaustive]pub enum Polarization {
Right,
Left,
Vertical,
Horizontal,
}
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§
Source§impl AsRef<str> for Polarization
impl AsRef<str> for Polarization
Source§impl Clone for Polarization
impl Clone for Polarization
Source§fn clone(&self) -> Polarization
fn clone(&self) -> Polarization
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 moreSource§impl Debug for Polarization
impl Debug for Polarization
Source§impl Default for Polarization
impl Default for Polarization
Source§fn default() -> Polarization
fn default() -> Polarization
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Polarization
impl<'de> Deserialize<'de> for Polarization
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Polarization, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Polarization, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for Polarization
impl FromStr for Polarization
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<Polarization, <Polarization as FromStr>::Err>
fn from_str(s: &str) -> Result<Polarization, <Polarization as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl Hash for Polarization
impl Hash for Polarization
Source§impl Ord for Polarization
impl Ord for Polarization
Source§fn cmp(&self, other: &Polarization) -> Ordering
fn cmp(&self, other: &Polarization) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Polarization
impl PartialEq for Polarization
Source§impl PartialOrd for Polarization
impl PartialOrd for Polarization
Source§impl Serialize for Polarization
impl Serialize for Polarization
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
Source§impl TryFrom<&str> for Polarization
impl TryFrom<&str> for Polarization
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<Polarization, <Polarization as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<Polarization, <Polarization as TryFrom<&str>>::Error>
Performs the conversion.
impl Copy for Polarization
impl Eq for Polarization
impl StructuralPartialEq for Polarization
Auto Trait Implementations§
impl Freeze for Polarization
impl RefUnwindSafe for Polarization
impl Send for Polarization
impl Sync for Polarization
impl Unpin for Polarization
impl UnwindSafe for Polarization
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.