pub enum OverrideLabel {
Percent(u8),
Unknown,
}
Variants§
Implementations§
Source§impl OverrideLabel
impl OverrideLabel
pub fn as_percent(&self) -> Option<u8>
Trait Implementations§
Source§impl Clone for OverrideLabel
impl Clone for OverrideLabel
Source§fn clone(&self) -> OverrideLabel
fn clone(&self) -> OverrideLabel
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 OverrideLabel
impl Debug for OverrideLabel
Source§impl Default for OverrideLabel
impl Default for OverrideLabel
Source§fn default() -> OverrideLabel
fn default() -> OverrideLabel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OverrideLabel
impl<'de> Deserialize<'de> for OverrideLabel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OverrideLabel
impl Display for OverrideLabel
Source§impl FromStr for OverrideLabel
impl FromStr for OverrideLabel
Source§impl PartialEq for OverrideLabel
impl PartialEq for OverrideLabel
Source§impl PartialOrd for OverrideLabel
impl PartialOrd for OverrideLabel
Source§impl Serialize for OverrideLabel
impl Serialize for OverrideLabel
impl StructuralPartialEq for OverrideLabel
Auto Trait Implementations§
impl Freeze for OverrideLabel
impl RefUnwindSafe for OverrideLabel
impl Send for OverrideLabel
impl Sync for OverrideLabel
impl Unpin for OverrideLabel
impl UnwindSafe for OverrideLabel
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more