#[non_exhaustive]pub enum Cpus {
Decimal(String),
Expression(String),
Other(String),
}Expand description
A raw decimal CPU allocation spelling.
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.
Decimal(String)
A decimal spelling, including 0.000.
Expression(String)
A deferred interpolation expression.
Other(String)
A retained non-decimal spelling.
Implementations§
Trait Implementations§
impl Eq for Cpus
impl StructuralPartialEq for Cpus
Auto Trait Implementations§
impl Freeze for Cpus
impl RefUnwindSafe for Cpus
impl Send for Cpus
impl Sync for Cpus
impl Unpin for Cpus
impl UnsafeUnpin for Cpus
impl UnwindSafe for Cpus
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