Struct deltalake::arrow::datatypes::i256

source ·
pub struct i256 { /* private fields */ }
Expand description

A signed 256-bit integer

Implementations§

source§

impl i256

source

pub const ZERO: i256 = _

The additive identity for this integer type, i.e. 0.

source

pub const ONE: i256 = _

The multiplicative identity for this integer type, i.e. 1.

source

pub const MINUS_ONE: i256 = _

The multiplicative inverse for this integer type, i.e. -1.

source

pub const MAX: i256 = _

The maximum value that can be represented by this integer type

source

pub const MIN: i256 = _

The minimum value that can be represented by this integer type

source

pub const fn from_le_bytes(b: [u8; 32]) -> i256

Create an integer value from its representation as a byte array in little-endian.

source

pub const fn from_be_bytes(b: [u8; 32]) -> i256

Create an integer value from its representation as a byte array in big-endian.

source

pub const fn from_i128(v: i128) -> i256

source

pub fn from_string(value_str: &str) -> Option<i256>

Create an integer value from its representation as string.

source

pub fn from_f64(v: f64) -> Option<i256>

Create an optional i256 from the provided f64. Returning None if overflow occurred

source

pub const fn from_parts(low: u128, high: i128) -> i256

Create an i256 from the provided low u128 and high i128

source

pub const fn to_parts(self) -> (u128, i128)

Returns this i256 as a low u128 and high i128

source

pub fn to_i128(self) -> Option<i128>

Converts this i256 into an i128 returning None if this would result in truncation/overflow

source

pub fn as_i128(self) -> i128

Wraps this i256 into an i128

source

pub const fn to_le_bytes(self) -> [u8; 32]

Return the memory representation of this integer as a byte array in little-endian byte order.

source

pub const fn to_be_bytes(self) -> [u8; 32]

Return the memory representation of this integer as a byte array in big-endian byte order.

source

pub fn wrapping_abs(self) -> i256

Computes the absolute value of this i256

source

pub fn checked_abs(self) -> Option<i256>

Computes the absolute value of this i256 returning None if Self == Self::MIN

source

pub fn wrapping_neg(self) -> i256

Negates this i256

source

pub fn checked_neg(self) -> Option<i256>

Negates this i256 returning None if Self == Self::MIN

source

pub fn wrapping_add(self, other: i256) -> i256

Performs wrapping addition

source

pub fn checked_add(self, other: i256) -> Option<i256>

Performs checked addition

source

pub fn wrapping_sub(self, other: i256) -> i256

Performs wrapping subtraction

source

pub fn checked_sub(self, other: i256) -> Option<i256>

Performs checked subtraction

source

pub fn wrapping_mul(self, other: i256) -> i256

Performs wrapping multiplication

source

pub fn checked_mul(self, other: i256) -> Option<i256>

Performs checked multiplication

source

pub fn wrapping_div(self, other: i256) -> i256

Performs wrapping division

source

pub fn checked_div(self, other: i256) -> Option<i256>

Performs checked division

source

pub fn wrapping_rem(self, other: i256) -> i256

Performs wrapping remainder

source

pub fn checked_rem(self, other: i256) -> Option<i256>

Performs checked remainder

source

pub fn checked_pow(self, exp: u32) -> Option<i256>

Performs checked exponentiation

source

pub fn wrapping_pow(self, exp: u32) -> i256

Performs wrapping exponentiation

source

pub const fn signum(self) -> i256

Returns a number i256 representing sign of this i256.

0 if the number is zero 1 if the number is positive -1 if the number is negative

source

pub const fn is_negative(self) -> bool

Returns true if this i256 is negative

source

pub const fn is_positive(self) -> bool

Returns true if this i256 is positive

Trait Implementations§

source§

impl<'a, 'b> Add<&'b i256> for &'a i256

§

type Output = i256

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'b i256) -> <&'a i256 as Add<&'b i256>>::Output

Performs the + operation. Read more
source§

impl<'a> Add<&'a i256> for i256

§

type Output = i256

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'a i256) -> <i256 as Add<&'a i256>>::Output

Performs the + operation. Read more
source§

impl<'a> Add<i256> for &'a i256

§

type Output = i256

The resulting type after applying the + operator.
source§

fn add(self, rhs: i256) -> <&'a i256 as Add<i256>>::Output

Performs the + operation. Read more
source§

impl Add for i256

§

type Output = i256

The resulting type after applying the + operator.
source§

fn add(self, rhs: i256) -> <i256 as Add>::Output

Performs the + operation. Read more
source§

impl ArrowNativeType for i256

source§

fn from_usize(u: usize) -> Option<i256>

Convert native integer type from usize Read more
source§

fn as_usize(self) -> usize

Convert to usize according to the as operator
source§

fn usize_as(i: usize) -> i256

Convert from usize according to the as operator
source§

fn to_usize(self) -> Option<usize>

Convert native type to usize. Read more
source§

fn to_isize(self) -> Option<isize>

Convert native type to isize. Read more
source§

fn from_i32(_: i32) -> Option<Self>

👎Deprecated: please use Option::Some instead
Convert native type from i32. Read more
source§

fn from_i64(_: i64) -> Option<Self>

👎Deprecated: please use Option::Some instead
Convert native type from i64. Read more
source§

fn from_i128(_: i128) -> Option<Self>

👎Deprecated: please use Option::Some instead
Convert native type from i128. Read more
source§

impl ArrowNativeTypeOp for i256

source§

const ZERO: i256 = i256::ZERO

The additive identity
source§

const ONE: i256 = i256::ONE

The multiplicative identity
source§

const MIN_TOTAL_ORDER: i256 = i256::MIN

The minimum value and identity for the max aggregation. Note that the aggregation uses the total order predicate for floating point values, which means that this value is a negative NaN.
source§

const MAX_TOTAL_ORDER: i256 = i256::MAX

The maximum value and identity for the min aggregation. Note that the aggregation uses the total order predicate for floating point values, which means that this value is a positive NaN.
source§

fn add_checked(self, rhs: i256) -> Result<i256, ArrowError>

Checked addition operation
source§

fn add_wrapping(self, rhs: i256) -> i256

Wrapping addition operation
source§

fn sub_checked(self, rhs: i256) -> Result<i256, ArrowError>

Checked subtraction operation
source§

fn sub_wrapping(self, rhs: i256) -> i256

Wrapping subtraction operation
source§

fn mul_checked(self, rhs: i256) -> Result<i256, ArrowError>

Checked multiplication operation
source§

fn mul_wrapping(self, rhs: i256) -> i256

Wrapping multiplication operation
source§

fn div_checked(self, rhs: i256) -> Result<i256, ArrowError>

Checked division operation
source§

fn div_wrapping(self, rhs: i256) -> i256

Wrapping division operation
source§

fn mod_checked(self, rhs: i256) -> Result<i256, ArrowError>

Checked remainder operation
source§

fn mod_wrapping(self, rhs: i256) -> i256

Wrapping remainder operation
source§

fn neg_checked(self) -> Result<i256, ArrowError>

Checked negation operation
source§

fn pow_checked(self, exp: u32) -> Result<i256, ArrowError>

Checked exponentiation operation
source§

fn pow_wrapping(self, exp: u32) -> i256

Wrapping exponentiation operation
source§

fn neg_wrapping(self) -> i256

Wrapping negation operation
source§

fn is_zero(self) -> bool

Returns true if zero else false
source§

fn compare(self, rhs: i256) -> Ordering

Compare operation
source§

fn is_eq(self, rhs: i256) -> bool

Equality operation
source§

fn is_ne(self, rhs: Self) -> bool

Not equal operation
source§

fn is_lt(self, rhs: Self) -> bool

Less than operation
source§

fn is_le(self, rhs: Self) -> bool

Less than equals operation
source§

fn is_gt(self, rhs: Self) -> bool

Greater than operation
source§

fn is_ge(self, rhs: Self) -> bool

Greater than equals operation
source§

impl AsPrimitive<i256> for u32

source§

fn as_(self) -> i256

Convert a value to another, using the as operator.
source§

impl BitAnd for i256

§

type Output = i256

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: i256) -> <i256 as BitAnd>::Output

Performs the & operation. Read more
source§

impl BitOr for i256

§

type Output = i256

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: i256) -> <i256 as BitOr>::Output

Performs the | operation. Read more
source§

impl BitXor for i256

§

type Output = i256

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: i256) -> <i256 as BitXor>::Output

Performs the ^ operation. Read more
source§

impl Clone for i256

source§

fn clone(&self) -> i256

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for i256

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for i256

source§

fn default() -> i256

Returns the “default value” for a type. Read more
source§

impl Display for i256

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a, 'b> Div<&'b i256> for &'a i256

§

type Output = i256

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'b i256) -> <&'a i256 as Div<&'b i256>>::Output

Performs the / operation. Read more
source§

impl<'a> Div<&'a i256> for i256

§

type Output = i256

The resulting type after applying the / operator.
source§

fn div(self, rhs: &'a i256) -> <i256 as Div<&'a i256>>::Output

Performs the / operation. Read more
source§

impl<'a> Div<i256> for &'a i256

§

type Output = i256

The resulting type after applying the / operator.
source§

fn div(self, rhs: i256) -> <&'a i256 as Div<i256>>::Output

Performs the / operation. Read more
source§

impl Div for i256

§

type Output = i256

The resulting type after applying the / operator.
source§

fn div(self, rhs: i256) -> <i256 as Div>::Output

Performs the / operation. Read more
source§

impl From<i16> for i256

source§

fn from(value: i16) -> i256

Converts to this type from the input type.
source§

impl From<i256> for NativeAdapter<Decimal256Type>

source§

fn from(value: i256) -> NativeAdapter<Decimal256Type>

Converts to this type from the input type.
source§

impl From<i32> for i256

source§

fn from(value: i32) -> i256

Converts to this type from the input type.
source§

impl From<i64> for i256

source§

fn from(value: i64) -> i256

Converts to this type from the input type.
source§

impl From<i8> for i256

source§

fn from(value: i8) -> i256

Converts to this type from the input type.
source§

impl FromStr for i256

§

type Err = ParseI256Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<i256, <i256 as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for i256

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl HashValue for i256

source§

fn hash_one(&self, state: &RandomState) -> u64

source§

impl<'a, 'b> Mul<&'b i256> for &'a i256

§

type Output = i256

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'b i256) -> <&'a i256 as Mul<&'b i256>>::Output

Performs the * operation. Read more
source§

impl<'a> Mul<&'a i256> for i256

§

type Output = i256

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a i256) -> <i256 as Mul<&'a i256>>::Output

Performs the * operation. Read more
source§

impl<'a> Mul<i256> for &'a i256

§

type Output = i256

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i256) -> <&'a i256 as Mul<i256>>::Output

Performs the * operation. Read more
source§

impl Mul for i256

§

type Output = i256

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i256) -> <i256 as Mul>::Output

Performs the * operation. Read more
source§

impl Neg for i256

§

type Output = i256

The resulting type after applying the - operator.
source§

fn neg(self) -> <i256 as Neg>::Output

Performs the unary - operation. Read more
source§

impl Ord for i256

source§

fn cmp(&self, other: &i256) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for i256

source§

fn eq(&self, other: &i256) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for i256

source§

fn partial_cmp(&self, other: &i256) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a, 'b> Rem<&'b i256> for &'a i256

§

type Output = i256

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &'b i256) -> <&'a i256 as Rem<&'b i256>>::Output

Performs the % operation. Read more
source§

impl<'a> Rem<&'a i256> for i256

§

type Output = i256

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &'a i256) -> <i256 as Rem<&'a i256>>::Output

Performs the % operation. Read more
source§

impl<'a> Rem<i256> for &'a i256

§

type Output = i256

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i256) -> <&'a i256 as Rem<i256>>::Output

Performs the % operation. Read more
source§

impl Rem for i256

§

type Output = i256

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i256) -> <i256 as Rem>::Output

Performs the % operation. Read more
source§

impl Shl<u8> for i256

§

type Output = i256

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u8) -> <i256 as Shl<u8>>::Output

Performs the << operation. Read more
source§

impl Shr<u8> for i256

§

type Output = i256

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u8) -> <i256 as Shr<u8>>::Output

Performs the >> operation. Read more
source§

impl<'a, 'b> Sub<&'b i256> for &'a i256

§

type Output = i256

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b i256) -> <&'a i256 as Sub<&'b i256>>::Output

Performs the - operation. Read more
source§

impl<'a> Sub<&'a i256> for i256

§

type Output = i256

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'a i256) -> <i256 as Sub<&'a i256>>::Output

Performs the - operation. Read more
source§

impl<'a> Sub<i256> for &'a i256

§

type Output = i256

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i256) -> <&'a i256 as Sub<i256>>::Output

Performs the - operation. Read more
source§

impl Sub for i256

§

type Output = i256

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i256) -> <i256 as Sub>::Output

Performs the - operation. Read more
source§

impl ToPrimitive for i256

source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more
source§

impl TryFrom<ScalarValue> for i256

§

type Error = DataFusionError

The type returned in the event of a conversion error.
source§

fn try_from(value: ScalarValue) -> Result<i256, DataFusionError>

Performs the conversion.
source§

impl Copy for i256

source§

impl Eq for i256

source§

impl StructuralPartialEq for i256

Auto Trait Implementations§

§

impl Freeze for i256

§

impl RefUnwindSafe for i256

§

impl Send for i256

§

impl Sync for i256

§

impl Unpin for i256

§

impl UnwindSafe for i256

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> AsOut<T> for T
where T: Copy,

source§

fn as_out(&mut self) -> Out<'_, T>

Returns an out reference to self.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToByteSlice for T
where T: ArrowNativeType,

source§

fn to_byte_slice(&self) -> &[u8]

Converts this instance into a byte slice
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

source§

impl<M> Measure for M
where M: Debug + PartialOrd + Add<Output = M> + Default + Clone,

source§

impl<N> NodeTrait for N
where N: Copy + Ord + Hash,

source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,

source§

impl<T> Ungil for T
where T: Send,