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