Struct oxsdatatypes::Integer
source · #[repr(transparent)]pub struct Integer { /* private fields */ }
Expand description
Uses internally a i64
.
Implementations§
source§impl Integer
impl Integer
pub fn from_be_bytes(bytes: [u8; 8]) -> Self
pub fn to_be_bytes(self) -> [u8; 8]
sourcepub fn checked_add(&self, rhs: impl Into<Self>) -> Option<Self>
pub fn checked_add(&self, rhs: impl Into<Self>) -> Option<Self>
sourcepub fn checked_sub(&self, rhs: impl Into<Self>) -> Option<Self>
pub fn checked_sub(&self, rhs: impl Into<Self>) -> Option<Self>
sourcepub fn checked_mul(&self, rhs: impl Into<Self>) -> Option<Self>
pub fn checked_mul(&self, rhs: impl Into<Self>) -> Option<Self>
sourcepub fn checked_div(&self, rhs: impl Into<Self>) -> Option<Self>
pub fn checked_div(&self, rhs: impl Into<Self>) -> Option<Self>
sourcepub fn checked_rem(&self, rhs: impl Into<Self>) -> Option<Self>
pub fn checked_rem(&self, rhs: impl Into<Self>) -> Option<Self>
pub fn checked_rem_euclid(&self, rhs: impl Into<Self>) -> Option<Self>
sourcepub fn checked_neg(&self) -> Option<Self>
pub fn checked_neg(&self) -> Option<Self>
pub const fn is_negative(&self) -> bool
pub const fn is_positive(&self) -> bool
sourcepub fn is_identical_with(&self, other: &Self) -> bool
pub fn is_identical_with(&self, other: &Self) -> bool
Checks if the two values are identical.
pub const MIN: Self = _
pub const MAX: Self = _
Trait Implementations§
source§impl FromStr for Integer
impl FromStr for Integer
§type Err = ParseIntError
type Err = ParseIntError
The associated error which can be returned from parsing.
source§impl Ord for Integer
impl Ord for Integer
source§impl PartialEq<Integer> for Integer
impl PartialEq<Integer> for Integer
source§impl PartialOrd<Integer> for Integer
impl PartialOrd<Integer> for Integer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl TryFrom<Decimal> for Integer
impl TryFrom<Decimal> for Integer
§type Error = DecimalOverflowError
type Error = DecimalOverflowError
The type returned in the event of a conversion error.
source§impl TryFrom<Double> for Integer
impl TryFrom<Double> for Integer
§type Error = DecimalOverflowError
type Error = DecimalOverflowError
The type returned in the event of a conversion error.
source§impl TryFrom<Float> for Integer
impl TryFrom<Float> for Integer
§type Error = DecimalOverflowError
type Error = DecimalOverflowError
The type returned in the event of a conversion error.
impl Copy for Integer
impl Eq for Integer
impl StructuralEq for Integer
impl StructuralPartialEq for Integer
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§
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