#[repr(C, u8)]pub enum OptionPercentageValue {
None,
Some(PercentageValue),
}Variants§
None
Some(PercentageValue)
Implementations§
Source§impl OptionPercentageValue
impl OptionPercentageValue
pub fn into_option(&self) -> Option<PercentageValue>
Source§impl OptionPercentageValue
impl OptionPercentageValue
pub fn as_option(&self) -> Option<&PercentageValue>
pub fn replace(&mut self, value: PercentageValue) -> OptionPercentageValue
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&PercentageValue>
pub fn as_mut(&mut self) -> Option<&mut PercentageValue>
pub fn map<U, F: FnOnce(PercentageValue) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionPercentageValue
impl Clone for OptionPercentageValue
Source§fn clone(&self) -> OptionPercentageValue
fn clone(&self) -> OptionPercentageValue
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 OptionPercentageValue
impl Debug for OptionPercentageValue
Source§impl Default for OptionPercentageValue
impl Default for OptionPercentageValue
Source§fn default() -> OptionPercentageValue
fn default() -> OptionPercentageValue
Returns the “default value” for a type. Read more
Source§impl From<Option<PercentageValue>> for OptionPercentageValue
impl From<Option<PercentageValue>> for OptionPercentageValue
Source§fn from(o: Option<PercentageValue>) -> OptionPercentageValue
fn from(o: Option<PercentageValue>) -> OptionPercentageValue
Converts to this type from the input type.
Source§impl From<OptionPercentageValue> for Option<PercentageValue>
impl From<OptionPercentageValue> for Option<PercentageValue>
Source§fn from(o: OptionPercentageValue) -> Option<PercentageValue>
fn from(o: OptionPercentageValue) -> Option<PercentageValue>
Converts to this type from the input type.
Source§impl Hash for OptionPercentageValue
impl Hash for OptionPercentageValue
Source§impl Ord for OptionPercentageValue
impl Ord for OptionPercentageValue
Source§fn cmp(&self, other: &OptionPercentageValue) -> Ordering
fn cmp(&self, other: &OptionPercentageValue) -> 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 OptionPercentageValue
impl PartialEq for OptionPercentageValue
Source§impl PartialOrd for OptionPercentageValue
impl PartialOrd for OptionPercentageValue
impl Copy for OptionPercentageValue
impl Eq for OptionPercentageValue
impl StructuralPartialEq for OptionPercentageValue
Auto Trait Implementations§
impl Freeze for OptionPercentageValue
impl RefUnwindSafe for OptionPercentageValue
impl Send for OptionPercentageValue
impl Sync for OptionPercentageValue
impl Unpin for OptionPercentageValue
impl UnwindSafe for OptionPercentageValue
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