pub enum ContextWarning {
Warning(f64),
Critical(f64),
}Variants§
Implementations§
Source§impl ContextWarning
impl ContextWarning
pub fn percentage(&self) -> f64
pub fn is_critical(&self) -> bool
Trait Implementations§
Source§impl Clone for ContextWarning
impl Clone for ContextWarning
Source§fn clone(&self) -> ContextWarning
fn clone(&self) -> ContextWarning
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 moreimpl Copy for ContextWarning
Auto Trait Implementations§
impl Freeze for ContextWarning
impl RefUnwindSafe for ContextWarning
impl Send for ContextWarning
impl Sync for ContextWarning
impl Unpin for ContextWarning
impl UnsafeUnpin for ContextWarning
impl UnwindSafe for ContextWarning
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