pub enum UsedPercent {
Valid {
percent: f64,
},
Unknown {
reason: String,
},
}Expand description
Fraction of a window consumed. Never a bare number: the parser must decide
Valid (finite, 0.0..=100.0) or Unknown with a fixed-vocabulary reason.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for UsedPercent
impl Clone for UsedPercent
Source§impl Debug for UsedPercent
impl Debug for UsedPercent
Source§impl<'de> Deserialize<'de> for UsedPercent
impl<'de> Deserialize<'de> for UsedPercent
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 PartialEq for UsedPercent
impl PartialEq for UsedPercent
Source§impl Serialize for UsedPercent
impl Serialize for UsedPercent
impl StructuralPartialEq for UsedPercent
Auto Trait Implementations§
impl Freeze for UsedPercent
impl RefUnwindSafe for UsedPercent
impl Send for UsedPercent
impl Sync for UsedPercent
impl Unpin for UsedPercent
impl UnsafeUnpin for UsedPercent
impl UnwindSafe for UsedPercent
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