Struct fog_pack::types::Integer [−][src]
Represents a fog-pack integer, whether signed or unsigned.
A Value or ValueRef that contains integer can be constructed using From trait.
Implementations
impl Integer[src]
pub fn min_value() -> Integer[src]
Minimum possible integer that can be represented. Equivalent to i64::min_value().
pub fn max_value() -> Integer[src]
Maximum possible integer that can be represented. Equivalent to u64::max_value().
pub fn is_i64(&self) -> bool[src]
Returns true if the integer can be represented as i64.
pub fn is_u64(&self) -> bool[src]
Returns true if the integer can be represented as u64.
pub fn as_i64(&self) -> Option<i64>[src]
Returns the integer represented as i64 if possible, or else None.
pub fn as_u64(&self) -> Option<u64>[src]
Returns the integer represented as u64 if possible, or else None.
pub fn as_bits(&self) -> u64[src]
Forcibly casts the value to u64 without modification.
Trait Implementations
impl Add<i64> for Integer[src]
type Output = Integer
The resulting type after applying the + operator.
fn add(self, other: i64) -> Integer[src]
impl Clone for Integer[src]
impl Copy for Integer[src]
impl Debug for Integer[src]
impl Default for Integer[src]
impl<'de> Deserialize<'de> for Integer[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl Display for Integer[src]
impl Eq for Integer[src]
impl From<Integer> for Value[src]
impl<'a> From<Integer> for ValueRef<'a>[src]
impl From<i16> for Integer[src]
impl From<i32> for Integer[src]
impl From<i64> for Integer[src]
impl From<i8> for Integer[src]
impl From<isize> for Integer[src]
impl From<u16> for Integer[src]
impl From<u32> for Integer[src]
impl From<u64> for Integer[src]
impl From<u8> for Integer[src]
impl From<usize> for Integer[src]
impl Hash for Integer[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl LowerHex for Integer[src]
impl Ord for Integer[src]
fn cmp(&self, other: &Integer) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<Integer> for Integer[src]
impl PartialOrd<Integer> for Integer[src]
fn partial_cmp(&self, other: &Integer) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl Serialize for Integer[src]
impl StructuralEq for Integer[src]
impl StructuralPartialEq for Integer[src]
impl Sub<i64> for Integer[src]
type Output = Integer
The resulting type after applying the - operator.
fn sub(self, other: i64) -> Integer[src]
impl UpperHex for Integer[src]
Auto Trait Implementations
impl RefUnwindSafe for Integer
impl Send for Integer
impl Sync for Integer
impl Unpin for Integer
impl UnwindSafe for Integer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,