pub struct ResourceBounds {
pub min: u32,
pub max: u32,
}Expand description
Structure holding a minimum and maximum value of some resource, where both values are unsigned integers.
Fields§
§min: u32Minimum value.
max: u32Maximum value.
Trait Implementations§
Source§impl Clone for ResourceBounds
impl Clone for ResourceBounds
Source§fn clone(&self) -> ResourceBounds
fn clone(&self) -> ResourceBounds
Returns a duplicate of the value. Read more
1.0.0 · 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 ResourceBounds
impl Debug for ResourceBounds
Source§impl<'de> Deserialize<'de> for ResourceBounds
impl<'de> Deserialize<'de> for ResourceBounds
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 ResourceBounds
impl PartialEq for ResourceBounds
Source§impl Serialize for ResourceBounds
impl Serialize for ResourceBounds
impl StructuralPartialEq for ResourceBounds
Auto Trait Implementations§
impl Freeze for ResourceBounds
impl RefUnwindSafe for ResourceBounds
impl Send for ResourceBounds
impl Sync for ResourceBounds
impl Unpin for ResourceBounds
impl UnwindSafe for ResourceBounds
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