pub struct Integer { /* private fields */ }
Expand description
Represents a fog-pack integer, whether signed or unsigned.
A Value
or ValueRef
that contains integer can be constructed using From
trait.
Implementations§
Source§impl Integer
impl Integer
Sourcepub fn min_value() -> Integer
pub fn min_value() -> Integer
Minimum possible integer that can be represented. Equivalent to i64::min_value()
.
Sourcepub fn max_value() -> Integer
pub fn max_value() -> Integer
Maximum possible integer that can be represented. Equivalent to u64::max_value()
.
Sourcepub fn as_i64(&self) -> Option<i64>
pub fn as_i64(&self) -> Option<i64>
Returns the integer represented as i64
if possible, or else None
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Integer
impl<'de> Deserialize<'de> for Integer
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 Ord for Integer
impl Ord for Integer
Source§impl PartialOrd for Integer
impl PartialOrd for Integer
impl Copy for Integer
impl Eq for Integer
impl StructuralPartialEq for Integer
Auto Trait Implementations§
impl Freeze for Integer
impl RefUnwindSafe for Integer
impl Send for Integer
impl Sync for Integer
impl Unpin for Integer
impl UnwindSafe for Integer
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