[−][src]Enum number_general::Int
A signed integer.
Variants
I16(i16)
I32(i32)
I64(i64)
Trait Implementations
impl Add<Int> for Int
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, other: Int) -> Self
[src]
impl AddAssign<Int> for Int
[src]
pub fn add_assign(&mut self, other: Self)
[src]
impl CastFrom<Complex> for Int
[src]
impl CastFrom<Float> for Int
[src]
impl CastFrom<Int> for Boolean
[src]
impl CastFrom<Int> for UInt
[src]
impl CastFrom<Number> for Int
[src]
impl Clone for Int
[src]
impl Copy for Int
[src]
impl Debug for Int
[src]
impl Default for Int
[src]
impl Display for Int
[src]
impl Div<Int> for Int
[src]
type Output = Self
The resulting type after applying the /
operator.
pub fn div(self, other: Int) -> Self
[src]
impl DivAssign<Int> for Int
[src]
pub fn div_assign(&mut self, other: Self)
[src]
impl Eq for Int
[src]
impl From<Boolean> for Int
[src]
impl From<Int> for Complex
[src]
impl From<Int> for Float
[src]
impl From<Int> for Number
[src]
impl From<UInt> for Int
[src]
impl From<i16> for Int
[src]
impl From<i32> for Int
[src]
impl From<i64> for Int
[src]
impl Mul<Int> for Int
[src]
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, other: Int) -> Self
[src]
impl MulAssign<Int> for Int
[src]
pub fn mul_assign(&mut self, other: Self)
[src]
impl NumberInstance for Int
[src]
type Abs = Self
type Exp = UInt
type Class = IntType
pub fn class(&self) -> IntType
[src]
pub fn into_type(self, dtype: IntType) -> Int
[src]
pub fn abs(self) -> Self
[src]
pub fn pow(self, exp: Self::Exp) -> Self
[src]
pub fn and(self, other: Self) -> Self where
Boolean: CastFrom<Self>,
[src]
Boolean: CastFrom<Self>,
pub fn not(self) -> Self where
Boolean: CastFrom<Self>,
[src]
Boolean: CastFrom<Self>,
pub fn or(self, other: Self) -> Self where
Boolean: CastFrom<Self>,
[src]
Boolean: CastFrom<Self>,
pub fn xor(self, other: Self) -> Self where
Boolean: CastFrom<Self>,
[src]
Boolean: CastFrom<Self>,
impl Ord for Int
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Int> for Int
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Int> for Int
[src]
pub fn partial_cmp(&self, other: &Int) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Product<Int> for Int
[src]
impl Serialize for Int
[src]
impl Sub<Int> for Int
[src]
type Output = Self
The resulting type after applying the -
operator.
pub fn sub(self, other: Int) -> Self
[src]
impl SubAssign<Int> for Int
[src]
pub fn sub_assign(&mut self, other: Self)
[src]
impl Sum<Int> for Int
[src]
impl<'en> ToStream<'en> for Int
[src]
Auto Trait Implementations
impl RefUnwindSafe for Int
[src]
impl Send for Int
[src]
impl Sync for Int
[src]
impl Unpin for Int
[src]
impl UnwindSafe for Int
[src]
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<F, T> CastFrom<F> for T where
T: From<F>,
[src]
T: From<F>,
impl<T, F> CastInto<F> for T where
F: CastFrom<T>,
[src]
F: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> Match for F
[src]
pub fn matches<T>(&self) -> bool where
T: TryCastFrom<Self>,
[src]
T: TryCastFrom<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<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
T: CastFrom<F>,
pub fn can_cast_from(&F) -> bool
[src]
pub fn opt_cast_from(f: F) -> Option<T>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]
T: TryCastFrom<F>,
pub fn can_cast_into(&self) -> bool
[src]
pub fn opt_cast_into(self) -> Option<T>
[src]
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
[src]
OnErr: FnOnce(&Self) -> Err,
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>,