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