pub struct MinSizeInt(/* private fields */);Trait Implementations§
Source§impl BoundedInteger for MinSizeInt
impl BoundedInteger for MinSizeInt
const MIN: Option<i128>
const MAX: Option<i128>
const DEFAULT: Option<i128>
const TYPE_DESCRIPTION: &'static str = "an integer between 1 and 7"
fn get(&self) -> i128
fn new(value: i128) -> Result<Self, BoundedIntegerError>
fn validate(value: i128) -> Result<(), BoundedIntegerError>
Source§impl Clone for MinSizeInt
impl Clone for MinSizeInt
Source§fn clone(&self) -> MinSizeInt
fn clone(&self) -> MinSizeInt
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 moreimpl Copy for MinSizeInt
Source§impl Debug for MinSizeInt
impl Debug for MinSizeInt
Source§impl<'de> Deserialize<'de> for MinSizeInt
impl<'de> Deserialize<'de> for MinSizeInt
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 MinSizeInt
impl PartialEq for MinSizeInt
Source§fn eq(&self, other: &MinSizeInt) -> bool
fn eq(&self, other: &MinSizeInt) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MinSizeInt
impl PartialOrd for MinSizeInt
Source§impl Serialize for MinSizeInt
impl Serialize for MinSizeInt
impl StructuralPartialEq for MinSizeInt
Auto Trait Implementations§
impl Freeze for MinSizeInt
impl RefUnwindSafe for MinSizeInt
impl Send for MinSizeInt
impl Sync for MinSizeInt
impl Unpin for MinSizeInt
impl UnsafeUnpin for MinSizeInt
impl UnwindSafe for MinSizeInt
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