pub enum BoardSize {
Ram {
maximum: Option<SizeValue<u64>>,
},
Flash {
maximum: Option<SizeValue<u64>>,
},
}
Expand description
An enumeration of a Board::sizes
.
Variants§
Implementations§
Source§impl BoardSize
impl BoardSize
Sourcepub fn has_maximum(&self) -> bool
pub fn has_maximum(&self) -> bool
A convenience function to ensure the board’s maximum sizes are defined.
Primarily used by Report::is_valid()
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BoardSize
impl<'de> Deserialize<'de> for BoardSize
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
Auto Trait Implementations§
impl Freeze for BoardSize
impl RefUnwindSafe for BoardSize
impl Send for BoardSize
impl Sync for BoardSize
impl Unpin for BoardSize
impl UnwindSafe for BoardSize
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