pub enum LimitValue {
Unlimited,
Number(String),
Expression(String),
Other(String),
}Expand description
A scalar resource-limit value.
Variants§
Unlimited
Unlimited, authored as -1.
Number(String)
A non-negative integer with its spelling retained.
Expression(String)
A deferred interpolation expression.
Other(String)
An invalid or provider-specific scalar retained for diagnostics.
Implementations§
Trait Implementations§
Source§impl Clone for LimitValue
impl Clone for LimitValue
Source§fn clone(&self) -> LimitValue
fn clone(&self) -> LimitValue
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 moreSource§impl Debug for LimitValue
impl Debug for LimitValue
impl Eq for LimitValue
Source§impl PartialEq for LimitValue
impl PartialEq for LimitValue
impl StructuralPartialEq for LimitValue
Auto Trait Implementations§
impl Freeze for LimitValue
impl RefUnwindSafe for LimitValue
impl Send for LimitValue
impl Sync for LimitValue
impl Unpin for LimitValue
impl UnsafeUnpin for LimitValue
impl UnwindSafe for LimitValue
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