SafeDec

Struct SafeDec 

Source
pub struct SafeDec<const D: usize>(/* private fields */);
Expand description

Fixed-point decimal built on top of SafeInt with D fractional digits.

§Examples

use safe_bigmath::SafeDec;

// 3 decimal places
let a: SafeDec<3> = "1.500".parse().unwrap();
let b: SafeDec<3> = "2.250".parse().unwrap();
let c = a + b;
assert_eq!(c.to_string(), "3.750");

Implementations§

Source§

impl<const D: usize> SafeDec<D>

Source

pub fn zero() -> SafeDec<D>

Zero value at the given scale.

Source

pub fn from_raw(raw: impl Into<SafeInt>) -> Self

Creates a SafeDec from an already scaled integer.

§Examples
use safe_bigmath::SafeDec;

let raw = 123_456; // represents 123.456 at 3 decimal places
let dec = SafeDec::<3>::from_raw(raw);
assert_eq!(dec.to_string(), "123.456");
Source

pub fn from_other_scale<const D2: usize>(other: SafeDec<D2>) -> Self

Converts between decimal scales, preserving magnitude.

§Examples
use safe_bigmath::SafeDec;

let a: SafeDec<4> = "1.2345".parse().unwrap();
let b = SafeDec::<2>::from_other_scale(a);
assert_eq!(b.to_string(), "1.24");

Trait Implementations§

Source§

impl<const D: usize> Add<&SafeDec<D>> for &SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<&SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for &SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add<SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize> Add for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the + operator.
Source§

fn add(self, other: SafeDec<D>) -> SafeDec<D>

Performs the + operation. Read more
Source§

impl<const D: usize, O> AddAssign<O> for SafeDec<D>
where SafeDec<D>: Add<O, Output = SafeDec<D>>,

Source§

fn add_assign(&mut self, rhs: O)

Performs the += operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for &SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<&SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for &SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd<SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitAnd for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the & operator.
Source§

fn bitand(self, other: SafeDec<D>) -> SafeDec<D>

Performs the & operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for &SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<&SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for &SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr<SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitOr for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the | operator.
Source§

fn bitor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the | operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for &SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<&SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for &SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor<SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> BitXor for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: SafeDec<D>) -> SafeDec<D>

Performs the ^ operation. Read more
Source§

impl<const D: usize> Clone for SafeDec<D>

Source§

fn clone(&self) -> SafeDec<D>

Returns a duplicate 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<const D: usize> Debug for SafeDec<D>

Source§

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

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

impl<const D: usize> Decode for SafeDec<D>

Source§

fn decode_ext( reader: &mut impl Read, dedupe_decoder: Option<&mut DedupeDecoder>, ) -> Result<Self>

Decodes Self from reader, optionally using DedupeDecoder.
Source§

fn decode_len(reader: &mut impl Read) -> Result<usize, Error>

Decodes a collection length previously encoded with Encode::encode_len.
Source§

fn decode_discriminant(reader: &mut impl Read) -> Result<usize, Error>

Decodes an enum discriminant previously encoded with Encode::encode_discriminant. Read more
Source§

fn decode(reader: &mut impl Read) -> Result<Self, Error>
where Self: Sized,

Convenience wrapper around Decode::decode_ext without deduplication.
Source§

impl<const D: usize> Default for SafeDec<D>

Source§

fn default() -> SafeDec<D>

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

impl<const D: usize> Display for SafeDec<D>

Source§

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

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

impl<const D: usize> Div<&SafeDec<D>> for &SafeDec<D>

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for &SafeInt

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for SafeDec<D>

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for SafeInt

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for i128

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for i16

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for i32

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for i64

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for i8

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for isize

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for u128

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for u16

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for u32

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for u64

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for u8

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeDec<D>> for usize

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeInt> for &SafeDec<D>

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeInt) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<&SafeInt> for SafeDec<D>

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: &SafeInt) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for &SafeDec<D>

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for &SafeInt

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for SafeInt

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for i128

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for i16

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for i32

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for i64

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for i8

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for isize

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for u128

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for u16

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for u32

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for u64

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for u8

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeDec<D>> for usize

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeInt> for &SafeDec<D>

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeInt) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div<SafeInt> for SafeDec<D>

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeInt) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Div for SafeDec<D>

Source§

type Output = Option<SafeDec<D>>

The resulting type after applying the / operator.
Source§

fn div(self, other: SafeDec<D>) -> Option<SafeDec<D>>

Performs the / operation. Read more
Source§

impl<const D: usize> Encode for SafeDec<D>

Source§

fn encode_ext( &self, writer: &mut impl Write, dedupe_encoder: Option<&mut DedupeEncoder>, ) -> Result<usize>

Encodes self to writer, optionally using DedupeEncoder.
Source§

fn encode_len(len: usize, writer: &mut impl Write) -> Result<usize, Error>

Encodes a collection length in a compact form.
Source§

fn encode_discriminant( discriminant: usize, writer: &mut impl Write, ) -> Result<usize, Error>

Encodes an enum discriminant in a compact, consistent form. Read more
Source§

fn encode(&self, writer: &mut impl Write) -> Result<usize, Error>

Convenience wrapper around Encode::encode_ext without deduplication.
Source§

impl<const D: usize> FromStr for SafeDec<D>

Source§

type Err = Error

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

fn from_str(s: &str) -> Result<Self, Self::Err>

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

impl<const D: usize> Hash for SafeDec<D>

Source§

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

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<const D: usize> Mul<&SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<&SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul<SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, other: SafeDec<D>) -> SafeDec<D>

Performs the * operation. Read more
Source§

impl<const D: usize> Mul for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl<const D: usize, O> MulAssign<O> for SafeDec<D>
where SafeDec<D>: Mul<O, Output = SafeDec<D>>,

Source§

fn mul_assign(&mut self, rhs: O)

Performs the *= operation. Read more
Source§

impl<const D: usize> Neg for &SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn neg(self) -> SafeDec<D>

Performs the unary - operation. Read more
Source§

impl<const D: usize> Neg for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn neg(self) -> SafeDec<D>

Performs the unary - operation. Read more
Source§

impl<const D: usize> Ord for SafeDec<D>

Source§

fn cmp(&self, other: &SafeDec<D>) -> 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,

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

impl<const D: usize> PartialEq<SafeDec<D>> for SafeInt

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for i128

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for i16

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for i32

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for i64

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for i8

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for isize

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for u128

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for u16

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for u32

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for u64

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for u8

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeDec<D>> for usize

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<SafeInt> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<i128> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<i16> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<i32> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<i64> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<i8> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<isize> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<u128> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<u16> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<u32> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<u64> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<u8> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq<usize> for SafeDec<D>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialEq for SafeDec<D>

Source§

fn eq(&self, other: &SafeDec<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for SafeInt

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for i128

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for i16

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for i32

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for i64

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for i8

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for isize

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for u128

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for u16

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for u32

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for u64

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for u8

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeDec<D>> for usize

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<SafeInt> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &SafeInt) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<i128> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &i128) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<i16> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &i16) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<i32> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &i32) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<i64> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &i64) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<i8> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &i8) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<isize> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &isize) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<u128> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &u128) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<u16> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &u16) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<u32> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &u32) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<u64> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &u64) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<u8> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &u8) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd<usize> for SafeDec<D>

Source§

fn partial_cmp(&self, other: &usize) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> PartialOrd for SafeDec<D>

Source§

fn partial_cmp(&self, other: &SafeDec<D>) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for &SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<&SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for &SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for &SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for SafeInt

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for i128

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for i16

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for i32

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for i64

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for i8

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for isize

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for u128

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for u16

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for u32

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for u64

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for u8

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub<SafeDec<D>> for usize

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize> Sub for SafeDec<D>

Source§

type Output = SafeDec<D>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SafeDec<D>) -> SafeDec<D>

Performs the - operation. Read more
Source§

impl<const D: usize, O> SubAssign<O> for SafeDec<D>
where SafeDec<D>: Sub<O, Output = SafeDec<D>>,

Source§

fn sub_assign(&mut self, rhs: O)

Performs the -= operation. Read more
Source§

impl<const D: usize> Eq for SafeDec<D>

Source§

impl<const D: usize> StructuralPartialEq for SafeDec<D>

Auto Trait Implementations§

§

impl<const D: usize> Freeze for SafeDec<D>

§

impl<const D: usize> RefUnwindSafe for SafeDec<D>

§

impl<const D: usize> Send for SafeDec<D>

§

impl<const D: usize> Sync for SafeDec<D>

§

impl<const D: usize> Unpin for SafeDec<D>

§

impl<const D: usize> UnwindSafe for SafeDec<D>

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> 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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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

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, 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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§

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>,

Source§

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>,

Source§

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.