devela::all

Struct Divisor

Source
pub struct Divisor<T> { /* private fields */ }
Expand description

Faster divisor for division and modulo operations.

§Features

It’s implemented for the integer primitives enabled by the corresponding [capability features][crate:_info::features#capability-features]: _int_i8, _int_i16, _int_i32, _int_i64, _int_i128, _int_isize, _int_u8, _int_u16, _int_u32, _int_u64, _int_u128, _int_usize.

§Derived Work

This is derived work from the quickdiv crate, including the following modifications:

  • unify all types in a single one with const-generic implementations.
  • constructors return Option instead of panicking.
  • specific implementations are feature-gated.
  • misc. refactoring and code compression.

Implementations§

Source§

impl Divisor<i8>

Available on crate feature _int_i8 only.
Source

pub const fn new_i8(d: i8) -> Option<Divisor<i8>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: i8) -> Option<Divisor<i8>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let d = Divisor::<i8>::new(-21).unwrap();
Source

pub const fn get(&self) -> i8

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<i8>::new(-15).unwrap();
assert_eq!(d.get(), -15);
Source

pub const fn divides(&self, n: i8) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<i8>::new(-9).unwrap();
assert!(d.divides(27));
Source

pub const fn rem_of(&self, n: i8) -> i8

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<i8>::new(21).unwrap();
let rem = d.rem_of(-30);
assert_eq!(rem, -9);
Source

pub const fn div_of(&self, n: i8) -> i8

Returns the result of dividing n by self.

This will perform a wrapping division, i.e. Divisor::<i8>::new(-1).unwrap().div_of(i8::MIN) will always silently return i8::MIN whether the program was compiled with overflow-checks turned off or not.

§Examples
let d = Divisor::<i8>::new(13).unwrap();
let div = d.div_of(-30);
assert_eq!(div, -2);
Source§

impl Divisor<i16>

Available on crate feature _int_i16 only.
Source

pub const fn new_i16(d: i16) -> Option<Divisor<i16>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: i16) -> Option<Divisor<i16>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let d = Divisor::<i16>::new(-21).unwrap();
Source

pub const fn get(&self) -> i16

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<i16>::new(-15).unwrap();
assert_eq!(d.get(), -15);
Source

pub const fn divides(&self, n: i16) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<i16>::new(-9).unwrap();
assert!(d.divides(27));
Source

pub const fn rem_of(&self, n: i16) -> i16

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<i16>::new(21).unwrap();
let rem = d.rem_of(-30);
assert_eq!(rem, -9);
Source

pub const fn div_of(&self, n: i16) -> i16

Returns the result of dividing n by self.

This will perform a wrapping division, i.e. Divisor::<i16>::new(-1).unwrap().div_of(i16::MIN) will always silently return i16::MIN whether the program was compiled with overflow-checks turned off or not.

§Examples
let d = Divisor::<i16>::new(13).unwrap();
let div = d.div_of(-30);
assert_eq!(div, -2);
Source§

impl Divisor<i32>

Available on crate feature _int_i32 only.
Source

pub const fn new_i32(d: i32) -> Option<Divisor<i32>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: i32) -> Option<Divisor<i32>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let d = Divisor::<i32>::new(-21).unwrap();
Source

pub const fn get(&self) -> i32

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<i32>::new(-15).unwrap();
assert_eq!(d.get(), -15);
Source

pub const fn divides(&self, n: i32) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<i32>::new(-9).unwrap();
assert!(d.divides(27));
Source

pub const fn rem_of(&self, n: i32) -> i32

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<i32>::new(21).unwrap();
let rem = d.rem_of(-30);
assert_eq!(rem, -9);
Source

pub const fn div_of(&self, n: i32) -> i32

Returns the result of dividing n by self.

This will perform a wrapping division, i.e. Divisor::<i32>::new(-1).unwrap().div_of(i32::MIN) will always silently return i32::MIN whether the program was compiled with overflow-checks turned off or not.

§Examples
let d = Divisor::<i32>::new(13).unwrap();
let div = d.div_of(-30);
assert_eq!(div, -2);
Source§

impl Divisor<i64>

Available on crate feature _int_i64 only.
Source

pub const fn new_i64(d: i64) -> Option<Divisor<i64>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: i64) -> Option<Divisor<i64>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let d = Divisor::<i64>::new(-21).unwrap();
Source

pub const fn get(&self) -> i64

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<i64>::new(-15).unwrap();
assert_eq!(d.get(), -15);
Source

pub const fn divides(&self, n: i64) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<i64>::new(-9).unwrap();
assert!(d.divides(27));
Source

pub const fn rem_of(&self, n: i64) -> i64

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<i64>::new(21).unwrap();
let rem = d.rem_of(-30);
assert_eq!(rem, -9);
Source

pub const fn div_of(&self, n: i64) -> i64

Returns the result of dividing n by self.

This will perform a wrapping division, i.e. Divisor::<i64>::new(-1).unwrap().div_of(i64::MIN) will always silently return i64::MIN whether the program was compiled with overflow-checks turned off or not.

§Examples
let d = Divisor::<i64>::new(13).unwrap();
let div = d.div_of(-30);
assert_eq!(div, -2);
Source§

impl Divisor<i128>

Available on crate feature _int_i128 only.
Source

pub const fn new_i128(d: i128) -> Option<Divisor<i128>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: i128) -> Option<Divisor<i128>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let d = Divisor::<i128>::new(-21).unwrap();
Source

pub const fn get(&self) -> i128

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<i128>::new(-15).unwrap();
assert_eq!(d.get(), -15);
Source

pub const fn divides(&self, n: i128) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<i128>::new(-9).unwrap();
assert!(d.divides(27));
Source

pub const fn rem_of(&self, n: i128) -> i128

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<i128>::new(21).unwrap();
let rem = d.rem_of(-30);
assert_eq!(rem, -9);
Source

pub const fn div_of(&self, n: i128) -> i128

Returns the result of dividing n by self.

This will perform a wrapping division, i.e. Divisor::<i128>::new(-1).unwrap().div_of(i128::MIN) will always silently return i128::MIN whether the program was compiled with overflow-checks turned off or not.

§Examples
let d = Divisor::<i128>::new(13).unwrap();
let div = d.div_of(-30);
assert_eq!(div, -2);
Source§

impl Divisor<isize>

Available on crate feature _int_isize only.
Source

pub const fn new_isize(d: isize) -> Option<Divisor<isize>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: isize) -> Option<Divisor<isize>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let d = Divisor::<isize>::new(-21).unwrap();
Source

pub const fn get(&self) -> isize

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<isize>::new(-15).unwrap();
assert_eq!(d.get(), -15);
Source

pub const fn divides(&self, n: isize) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<isize>::new(-9).unwrap();
assert!(d.divides(27));
Source

pub const fn rem_of(&self, n: isize) -> isize

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<isize>::new(21).unwrap();
let rem = d.rem_of(-30);
assert_eq!(rem, -9);
Source

pub const fn div_of(&self, n: isize) -> isize

Returns the result of dividing n by self.

This will perform a wrapping division, i.e. Divisor::<isize>::new(-1).unwrap().div_of(isize::MIN) will always silently return isize::MIN whether the program was compiled with overflow-checks turned off or not.

§Examples
let d = Divisor::<isize>::new(13).unwrap();
let div = d.div_of(-30);
assert_eq!(div, -2);
Source§

impl Divisor<u8>

Available on crate feature _int_u8 only.
Source

pub const fn new_u8(d: u8) -> Option<Divisor<u8>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: u8) -> Option<Divisor<u8>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let _d = Divisor::<u8>::new(5);
Source

pub const fn get(&self) -> u8

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<u8>::new(7).unwrap();
assert_eq!(d.get(), 7);
Source

pub const fn divides(&self, n: u8) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<u8>::new(17).unwrap();
assert!(d.divides(34));
Source

pub const fn rem_of(&self, n: u8) -> u8

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<u8>::new(11).unwrap();
let rem = d.rem_of(30);
assert_eq!(rem, 8);
Source

pub const fn div_of(&self, n: u8) -> u8

Returns the result of dividing n by self.

§Examples
let d = Divisor::<u8>::new(17).unwrap();
let div = d.div_of(34);
assert_eq!(div, 2);
Source§

impl Divisor<u16>

Available on crate feature _int_u16 only.
Source

pub const fn new_u16(d: u16) -> Option<Divisor<u16>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: u16) -> Option<Divisor<u16>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let _d = Divisor::<u16>::new(5);
Source

pub const fn get(&self) -> u16

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<u16>::new(7).unwrap();
assert_eq!(d.get(), 7);
Source

pub const fn divides(&self, n: u16) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<u16>::new(17).unwrap();
assert!(d.divides(34));
Source

pub const fn rem_of(&self, n: u16) -> u16

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<u16>::new(11).unwrap();
let rem = d.rem_of(30);
assert_eq!(rem, 8);
Source

pub const fn div_of(&self, n: u16) -> u16

Returns the result of dividing n by self.

§Examples
let d = Divisor::<u16>::new(17).unwrap();
let div = d.div_of(34);
assert_eq!(div, 2);
Source§

impl Divisor<u32>

Available on crate feature _int_u32 only.
Source

pub const fn new_u32(d: u32) -> Option<Divisor<u32>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: u32) -> Option<Divisor<u32>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let _d = Divisor::<u32>::new(5);
Source

pub const fn get(&self) -> u32

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<u32>::new(7).unwrap();
assert_eq!(d.get(), 7);
Source

pub const fn divides(&self, n: u32) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<u32>::new(17).unwrap();
assert!(d.divides(34));
Source

pub const fn rem_of(&self, n: u32) -> u32

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<u32>::new(11).unwrap();
let rem = d.rem_of(30);
assert_eq!(rem, 8);
Source

pub const fn div_of(&self, n: u32) -> u32

Returns the result of dividing n by self.

§Examples
let d = Divisor::<u32>::new(17).unwrap();
let div = d.div_of(34);
assert_eq!(div, 2);
Source§

impl Divisor<u64>

Available on crate feature _int_u64 only.
Source

pub const fn new_u64(d: u64) -> Option<Divisor<u64>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: u64) -> Option<Divisor<u64>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let _d = Divisor::<u64>::new(5);
Source

pub const fn get(&self) -> u64

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<u64>::new(7).unwrap();
assert_eq!(d.get(), 7);
Source

pub const fn divides(&self, n: u64) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<u64>::new(17).unwrap();
assert!(d.divides(34));
Source

pub const fn rem_of(&self, n: u64) -> u64

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<u64>::new(11).unwrap();
let rem = d.rem_of(30);
assert_eq!(rem, 8);
Source

pub const fn div_of(&self, n: u64) -> u64

Returns the result of dividing n by self.

§Examples
let d = Divisor::<u64>::new(17).unwrap();
let div = d.div_of(34);
assert_eq!(div, 2);
Source§

impl Divisor<u128>

Available on crate feature _int_u128 only.
Source

pub const fn new_u128(d: u128) -> Option<Divisor<u128>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: u128) -> Option<Divisor<u128>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let _d = Divisor::<u128>::new(5);
Source

pub const fn get(&self) -> u128

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<u128>::new(7).unwrap();
assert_eq!(d.get(), 7);
Source

pub const fn divides(&self, n: u128) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<u128>::new(17).unwrap();
assert!(d.divides(34));
Source

pub const fn rem_of(&self, n: u128) -> u128

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<u128>::new(11).unwrap();
let rem = d.rem_of(30);
assert_eq!(rem, 8);
Source

pub const fn div_of(&self, n: u128) -> u128

Returns the result of dividing n by self.

§Examples
let d = Divisor::<u128>::new(17).unwrap();
let div = d.div_of(34);
assert_eq!(div, 2);
Source§

impl Divisor<usize>

Available on crate feature _int_usize only.
Source

pub const fn new_usize(d: usize) -> Option<Divisor<usize>>

Alias of new with a unique name that helps type inference.

Source

pub const fn new(d: usize) -> Option<Divisor<usize>>

Creates a divisor which can be used for faster computation of division and modulo by d.

Returns None if d equals zero.

§Examples
let _d = Divisor::<usize>::new(5);
Source

pub const fn get(&self) -> usize

Returns the value that was used to construct this divisor as a primitive type.

§Examples
let d = Divisor::<usize>::new(7).unwrap();
assert_eq!(d.get(), 7);
Source

pub const fn divides(&self, n: usize) -> bool

Returns true if n is divisible by self.

We take 0 to be divisible by all non-zero numbers.

§Examples
let d = Divisor::<usize>::new(17).unwrap();
assert!(d.divides(34));
Source

pub const fn rem_of(&self, n: usize) -> usize

Returns the remainder of dividing n by self.

§Examples
let d = Divisor::<usize>::new(11).unwrap();
let rem = d.rem_of(30);
assert_eq!(rem, 8);
Source

pub const fn div_of(&self, n: usize) -> usize

Returns the result of dividing n by self.

§Examples
let d = Divisor::<usize>::new(17).unwrap();
let div = d.div_of(34);
assert_eq!(div, 2);

Trait Implementations§

Source§

impl<T: Clone> Clone for Divisor<T>

Source§

fn clone(&self) -> Divisor<T>

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Divisor<i128>

Source§

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

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

impl Debug for Divisor<i16>

Source§

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

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

impl Debug for Divisor<i32>

Source§

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

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

impl Debug for Divisor<i64>

Source§

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

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

impl Debug for Divisor<i8>

Source§

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

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

impl Debug for Divisor<isize>

Source§

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

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

impl Debug for Divisor<u128>

Source§

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

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

impl Debug for Divisor<u16>

Source§

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

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

impl Debug for Divisor<u32>

Source§

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

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

impl Debug for Divisor<u64>

Source§

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

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

impl Debug for Divisor<u8>

Source§

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

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

impl Debug for Divisor<usize>

Source§

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

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

impl Display for Divisor<i128>

Source§

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

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

impl Display for Divisor<i16>

Source§

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

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

impl Display for Divisor<i32>

Source§

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

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

impl Display for Divisor<i64>

Source§

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

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

impl Display for Divisor<i8>

Source§

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

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

impl Display for Divisor<isize>

Source§

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

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

impl Display for Divisor<u128>

Source§

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

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

impl Display for Divisor<u16>

Source§

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

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

impl Display for Divisor<u32>

Source§

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

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

impl Display for Divisor<u64>

Source§

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

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

impl Display for Divisor<u8>

Source§

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

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

impl Display for Divisor<usize>

Source§

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

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

impl Div<Divisor<i128>> for i128

Source§

type Output = i128

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<i128>) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Divisor<i16>> for i16

Source§

type Output = i16

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<i16>) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Divisor<i32>> for i32

Source§

type Output = i32

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<i32>) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Divisor<i64>> for i64

Source§

type Output = i64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<i64>) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Divisor<i8>> for i8

Source§

type Output = i8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<i8>) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Divisor<isize>> for isize

Source§

type Output = isize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<isize>) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Divisor<u128>> for u128

Source§

type Output = u128

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<u128>) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Divisor<u16>> for u16

Source§

type Output = u16

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<u16>) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Divisor<u32>> for u32

Source§

type Output = u32

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<u32>) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Divisor<u64>> for u64

Source§

type Output = u64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<u64>) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Divisor<u8>> for u8

Source§

type Output = u8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<u8>) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Divisor<usize>> for usize

Source§

type Output = usize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Divisor<usize>) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign<Divisor<i128>> for i128

Source§

fn div_assign(&mut self, rhs: Divisor<i128>)

Performs the /= operation. Read more
Source§

impl DivAssign<Divisor<i16>> for i16

Source§

fn div_assign(&mut self, rhs: Divisor<i16>)

Performs the /= operation. Read more
Source§

impl DivAssign<Divisor<i32>> for i32

Source§

fn div_assign(&mut self, rhs: Divisor<i32>)

Performs the /= operation. Read more
Source§

impl DivAssign<Divisor<i64>> for i64

Source§

fn div_assign(&mut self, rhs: Divisor<i64>)

Performs the /= operation. Read more
Source§

impl DivAssign<Divisor<i8>> for i8

Source§

fn div_assign(&mut self, rhs: Divisor<i8>)

Performs the /= operation. Read more
Source§

impl DivAssign<Divisor<isize>> for isize

Source§

fn div_assign(&mut self, rhs: Divisor<isize>)

Performs the /= operation. Read more
Source§

impl DivAssign<Divisor<u128>> for u128

Source§

fn div_assign(&mut self, rhs: Divisor<u128>)

Performs the /= operation. Read more
Source§

impl DivAssign<Divisor<u16>> for u16

Source§

fn div_assign(&mut self, rhs: Divisor<u16>)

Performs the /= operation. Read more
Source§

impl DivAssign<Divisor<u32>> for u32

Source§

fn div_assign(&mut self, rhs: Divisor<u32>)

Performs the /= operation. Read more
Source§

impl DivAssign<Divisor<u64>> for u64

Source§

fn div_assign(&mut self, rhs: Divisor<u64>)

Performs the /= operation. Read more
Source§

impl DivAssign<Divisor<u8>> for u8

Source§

fn div_assign(&mut self, rhs: Divisor<u8>)

Performs the /= operation. Read more
Source§

impl DivAssign<Divisor<usize>> for usize

Source§

fn div_assign(&mut self, rhs: Divisor<usize>)

Performs the /= operation. Read more
Source§

impl Hash for Divisor<i128>

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 Hash for Divisor<i16>

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 Hash for Divisor<i32>

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 Hash for Divisor<i64>

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 Hash for Divisor<i8>

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 Hash for Divisor<isize>

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 Hash for Divisor<u128>

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 Hash for Divisor<u16>

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 Hash for Divisor<u32>

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 Hash for Divisor<u64>

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 Hash for Divisor<u8>

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 Hash for Divisor<usize>

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 PartialEq for Divisor<i128>

Source§

fn eq(&self, other: &Self) -> 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 PartialEq for Divisor<i16>

Source§

fn eq(&self, other: &Self) -> 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 PartialEq for Divisor<i32>

Source§

fn eq(&self, other: &Self) -> 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 PartialEq for Divisor<i64>

Source§

fn eq(&self, other: &Self) -> 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 PartialEq for Divisor<i8>

Source§

fn eq(&self, other: &Self) -> 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 PartialEq for Divisor<isize>

Source§

fn eq(&self, other: &Self) -> 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 PartialEq for Divisor<u128>

Source§

fn eq(&self, other: &Self) -> 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 PartialEq for Divisor<u16>

Source§

fn eq(&self, other: &Self) -> 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 PartialEq for Divisor<u32>

Source§

fn eq(&self, other: &Self) -> 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 PartialEq for Divisor<u64>

Source§

fn eq(&self, other: &Self) -> 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 PartialEq for Divisor<u8>

Source§

fn eq(&self, other: &Self) -> 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 PartialEq for Divisor<usize>

Source§

fn eq(&self, other: &Self) -> 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 Rem<Divisor<i128>> for i128

Source§

type Output = i128

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<i128>) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Divisor<i16>> for i16

Source§

type Output = i16

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<i16>) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Divisor<i32>> for i32

Source§

type Output = i32

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<i32>) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Divisor<i64>> for i64

Source§

type Output = i64

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<i64>) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Divisor<i8>> for i8

Source§

type Output = i8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<i8>) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Divisor<isize>> for isize

Source§

type Output = isize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<isize>) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Divisor<u128>> for u128

Source§

type Output = u128

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<u128>) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Divisor<u16>> for u16

Source§

type Output = u16

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<u16>) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Divisor<u32>> for u32

Source§

type Output = u32

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<u32>) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Divisor<u64>> for u64

Source§

type Output = u64

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<u64>) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Divisor<u8>> for u8

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<u8>) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Divisor<usize>> for usize

Source§

type Output = usize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Divisor<usize>) -> Self::Output

Performs the % operation. Read more
Source§

impl RemAssign<Divisor<i128>> for i128

Source§

fn rem_assign(&mut self, rhs: Divisor<i128>)

Performs the %= operation. Read more
Source§

impl RemAssign<Divisor<i16>> for i16

Source§

fn rem_assign(&mut self, rhs: Divisor<i16>)

Performs the %= operation. Read more
Source§

impl RemAssign<Divisor<i32>> for i32

Source§

fn rem_assign(&mut self, rhs: Divisor<i32>)

Performs the %= operation. Read more
Source§

impl RemAssign<Divisor<i64>> for i64

Source§

fn rem_assign(&mut self, rhs: Divisor<i64>)

Performs the %= operation. Read more
Source§

impl RemAssign<Divisor<i8>> for i8

Source§

fn rem_assign(&mut self, rhs: Divisor<i8>)

Performs the %= operation. Read more
Source§

impl RemAssign<Divisor<isize>> for isize

Source§

fn rem_assign(&mut self, rhs: Divisor<isize>)

Performs the %= operation. Read more
Source§

impl RemAssign<Divisor<u128>> for u128

Source§

fn rem_assign(&mut self, rhs: Divisor<u128>)

Performs the %= operation. Read more
Source§

impl RemAssign<Divisor<u16>> for u16

Source§

fn rem_assign(&mut self, rhs: Divisor<u16>)

Performs the %= operation. Read more
Source§

impl RemAssign<Divisor<u32>> for u32

Source§

fn rem_assign(&mut self, rhs: Divisor<u32>)

Performs the %= operation. Read more
Source§

impl RemAssign<Divisor<u64>> for u64

Source§

fn rem_assign(&mut self, rhs: Divisor<u64>)

Performs the %= operation. Read more
Source§

impl RemAssign<Divisor<u8>> for u8

Source§

fn rem_assign(&mut self, rhs: Divisor<u8>)

Performs the %= operation. Read more
Source§

impl RemAssign<Divisor<usize>> for usize

Source§

fn rem_assign(&mut self, rhs: Divisor<usize>)

Performs the %= operation. Read more
Source§

impl<T: Copy> Copy for Divisor<T>

Source§

impl Eq for Divisor<i128>

Source§

impl Eq for Divisor<i16>

Source§

impl Eq for Divisor<i32>

Source§

impl Eq for Divisor<i64>

Source§

impl Eq for Divisor<i8>

Source§

impl Eq for Divisor<isize>

Source§

impl Eq for Divisor<u128>

Source§

impl Eq for Divisor<u16>

Source§

impl Eq for Divisor<u32>

Source§

impl Eq for Divisor<u64>

Source§

impl Eq for Divisor<u8>

Source§

impl Eq for Divisor<usize>

Auto Trait Implementations§

§

impl<T> Freeze for Divisor<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Divisor<T>
where T: RefUnwindSafe,

§

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

§

impl<T> Sync for Divisor<T>
where T: Sync,

§

impl<T> Unpin for Divisor<T>
where T: Unpin,

§

impl<T> UnwindSafe for Divisor<T>
where T: UnwindSafe,

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
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
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> ByteSized for T

Source§

const BYTE_ALIGN: usize = _

The alignment of this type in bytes.
Source§

const BYTE_SIZE: usize = _

The size of this type in bytes.
Source§

fn byte_align(&self) -> usize

Returns the alignment of this type in bytes.
Source§

fn byte_size(&self) -> usize

Returns the size of this type in bytes. Read more
Source§

fn ptr_size_ratio(&self) -> [usize; 2]

Returns the size ratio between Ptr::BYTES and BYTE_SIZE. Read more
Source§

impl<T, R> Chain<R> for T
where T: ?Sized,

Source§

fn chain<F>(self, f: F) -> R
where F: FnOnce(Self) -> R, Self: Sized,

Chain a function which takes the parameter by value.
Source§

fn chain_ref<F>(&self, f: F) -> R
where F: FnOnce(&Self) -> R,

Chain a function which takes the parameter by shared reference.
Source§

fn chain_mut<F>(&mut self, f: F) -> R
where F: FnOnce(&mut Self) -> R,

Chain a function which takes the parameter by exclusive reference.
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

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

§

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

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

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

Source§

fn type_id() -> TypeId

Returns the TypeId of Self. Read more
Source§

fn type_of(&self) -> TypeId

Returns the TypeId of self. Read more
Source§

fn type_name(&self) -> &'static str

Returns the type name of self. Read more
Source§

fn type_is<T: 'static>(&self) -> bool

Returns true if Self is of type T. Read more
Source§

fn as_any_ref(&self) -> &dyn Any
where Self: Sized,

Upcasts &self as &dyn Any. Read more
Source§

fn as_any_mut(&mut self) -> &mut dyn Any
where Self: Sized,

Upcasts &mut self as &mut dyn Any. Read more
Source§

fn as_any_box(self: Box<Self>) -> Box<dyn Any>
where Self: Sized,

Upcasts Box<self> as Box<dyn Any>. Read more
Source§

fn downcast_ref<T: 'static>(&self) -> Option<&T>

Available on crate feature unsafe_layout only.
Returns some shared reference to the inner value if it is of type T. Read more
Source§

fn downcast_mut<T: 'static>(&mut self) -> Option<&mut T>

Available on crate feature unsafe_layout only.
Returns some exclusive reference to the inner value if it is of type T. Read more
Source§

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

Source§

const NEEDS_DROP: bool = _

Know whether dropping values of this type matters, in compile-time.
Source§

fn mem_align_of<T>() -> usize

Returns the minimum alignment of the type in bytes. Read more
Source§

fn mem_align_of_val(&self) -> usize

Returns the alignment of the pointed-to value in bytes. Read more
Source§

fn mem_size_of<T>() -> usize

Returns the size of a type in bytes. Read more
Source§

fn mem_size_of_val(&self) -> usize

Returns the size of the pointed-to value in bytes. Read more
Source§

fn mem_copy(&self) -> Self
where Self: Copy,

Bitwise-copies a value. Read more
Source§

fn mem_needs_drop(&self) -> bool

Returns true if dropping values of this type matters. Read more
Source§

fn mem_drop(self)
where Self: Sized,

Drops self by running its destructor. Read more
Source§

fn mem_forget(self)
where Self: Sized,

Forgets about self without running its destructor. Read more
Source§

fn mem_replace(&mut self, other: Self) -> Self
where Self: Sized,

Replaces self with other, returning the previous value of self. Read more
Source§

fn mem_take(&mut self) -> Self
where Self: Default,

Replaces self with its default value, returning the previous value of self. Read more
Source§

fn mem_swap(&mut self, other: &mut Self)
where Self: Sized,

Swaps the value of self and other without deinitializing either one. Read more
Source§

unsafe fn mem_zeroed<T>() -> T

Available on crate feature unsafe_layout only.
Returns the value of type T represented by the all-zero byte-pattern. Read more
Source§

unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst

Available on crate feature unsafe_layout only.
Returns the value of type T represented by the all-zero byte-pattern. Read more
Source§

fn mem_as_bytes(&self) -> &[u8]
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &[u8]. Read more
Source§

fn mem_as_bytes_mut(&mut self) -> &mut [u8]
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &mut [u8]. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<S> FromSample<S> for S

§

fn from_sample_(s: S) -> S

Source§

impl<T> Hook for T

Source§

fn hook_ref<F>(self, f: F) -> Self
where F: FnOnce(&Self),

Applies a function which takes the parameter by shared reference, and then returns the (possibly) modified owned value. Read more
Source§

fn hook_mut<F>(self, f: F) -> Self
where F: FnOnce(&mut Self),

Applies a function which takes the parameter by exclusive reference, and then returns the (possibly) modified owned value. Read more
§

impl<T> Instrument for T

§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

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

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

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

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

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

§

fn into_sample(self) -> T

§

impl<T> LayoutRaw for T

§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Pointee for T

§

type Metadata = ()

The metadata type for pointers and references to this type.
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
§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

§

fn to_sample_(self) -> U

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.
§

impl<T> WithSubscriber for T

§

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

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

§

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