pub struct VcpusInt(/* private fields */);Trait Implementations§
Source§impl BoundedInteger for VcpusInt
impl BoundedInteger for VcpusInt
const MIN: Option<i128>
const MAX: Option<i128>
const DEFAULT: Option<i128>
const TYPE_DESCRIPTION: &'static str = "an integer greater than or equal to 1"
fn get(&self) -> i128
fn new(value: i128) -> Result<Self, BoundedIntegerError>
fn validate(value: i128) -> Result<(), BoundedIntegerError>
impl Copy for VcpusInt
Source§impl<'de> Deserialize<'de> for VcpusInt
impl<'de> Deserialize<'de> for VcpusInt
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 PartialOrd for VcpusInt
impl PartialOrd for VcpusInt
impl StructuralPartialEq for VcpusInt
Auto Trait Implementations§
impl Freeze for VcpusInt
impl RefUnwindSafe for VcpusInt
impl Send for VcpusInt
impl Sync for VcpusInt
impl Unpin for VcpusInt
impl UnsafeUnpin for VcpusInt
impl UnwindSafe for VcpusInt
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