#[non_exhaustive]pub enum Amount {
Auto,
Bytes(u64),
Percent(u8),
}Expand description
A budget: auto, a size, or a percentage of what the key names.
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.
Auto
Computed from the machine (see the key’s help).
Bytes(u64)
A fixed size in bytes.
Percent(u8)
A percentage (0..=100) of what the key names.
Trait Implementations§
impl Copy for Amount
impl Eq for Amount
impl StructuralPartialEq for Amount
Auto Trait Implementations§
impl Forget for Amount
impl Freeze for Amount
impl Move for Amount
impl RefUnwindSafe for Amount
impl Send for Amount
impl Sync for Amount
impl Unpin for Amount
impl UnsafeUnpin for Amount
impl UnwindSafe for Amount
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