StepSize

Enum StepSize 

Source
pub enum StepSize {
    Semitone = 1,
    Tone = 2,
}
Expand description

StepSize provides an enumeration for musical step sizes, namely semitones and tones. The implementation primarily works to provide a generic unit of measurement for musical intervals.

Variants§

§

Semitone = 1

§

Tone = 2

Implementations§

Source§

impl StepSize

Source

pub const fn is_semitone(&self) -> bool

Returns true if the enum is StepSize::Semitone otherwise false

Source

pub const fn is_tone(&self) -> bool

Returns true if the enum is StepSize::Tone otherwise false

Source§

impl StepSize

Source

pub const fn semitone() -> StepSize

A functional constructor for the Semitone variant.

Source

pub const fn tone() -> StepSize

A functional constructor for the Tone variant.

Trait Implementations§

Source§

impl Add<&i16> for StepSize

Source§

type Output = i16

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i16) -> <StepSize as Add<&i16>>::Output

Performs the + operation. Read more
Source§

impl Add<&i32> for StepSize

Source§

type Output = i32

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i32) -> <StepSize as Add<&i32>>::Output

Performs the + operation. Read more
Source§

impl Add<&i64> for StepSize

Source§

type Output = i64

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i64) -> <StepSize as Add<&i64>>::Output

Performs the + operation. Read more
Source§

impl Add<&i8> for StepSize

Source§

type Output = i8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i8) -> <StepSize as Add<&i8>>::Output

Performs the + operation. Read more
Source§

impl Add<&isize> for StepSize

Source§

type Output = isize

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &isize) -> <StepSize as Add<&isize>>::Output

Performs the + operation. Read more
Source§

impl Add<&mut i16> for StepSize

Source§

type Output = i16

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &mut i16) -> <StepSize as Add<&mut i16>>::Output

Performs the + operation. Read more
Source§

impl Add<&mut i32> for StepSize

Source§

type Output = i32

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &mut i32) -> <StepSize as Add<&mut i32>>::Output

Performs the + operation. Read more
Source§

impl Add<&mut i64> for StepSize

Source§

type Output = i64

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &mut i64) -> <StepSize as Add<&mut i64>>::Output

Performs the + operation. Read more
Source§

impl Add<&mut i8> for StepSize

Source§

type Output = i8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &mut i8) -> <StepSize as Add<&mut i8>>::Output

Performs the + operation. Read more
Source§

impl Add<&mut isize> for StepSize

Source§

type Output = isize

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &mut isize) -> <StepSize as Add<&mut isize>>::Output

Performs the + operation. Read more
Source§

impl Add<&mut u16> for StepSize

Source§

type Output = u16

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &mut u16) -> <StepSize as Add<&mut u16>>::Output

Performs the + operation. Read more
Source§

impl Add<&mut u32> for StepSize

Source§

type Output = u32

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &mut u32) -> <StepSize as Add<&mut u32>>::Output

Performs the + operation. Read more
Source§

impl Add<&mut u64> for StepSize

Source§

type Output = u64

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &mut u64) -> <StepSize as Add<&mut u64>>::Output

Performs the + operation. Read more
Source§

impl Add<&mut u8> for StepSize

Source§

type Output = u8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &mut u8) -> <StepSize as Add<&mut u8>>::Output

Performs the + operation. Read more
Source§

impl Add<&mut usize> for StepSize

Source§

type Output = usize

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &mut usize) -> <StepSize as Add<&mut usize>>::Output

Performs the + operation. Read more
Source§

impl Add<&u16> for StepSize

Source§

type Output = u16

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u16) -> <StepSize as Add<&u16>>::Output

Performs the + operation. Read more
Source§

impl Add<&u32> for StepSize

Source§

type Output = u32

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u32) -> <StepSize as Add<&u32>>::Output

Performs the + operation. Read more
Source§

impl Add<&u64> for StepSize

Source§

type Output = u64

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u64) -> <StepSize as Add<&u64>>::Output

Performs the + operation. Read more
Source§

impl Add<&u8> for StepSize

Source§

type Output = u8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u8) -> <StepSize as Add<&u8>>::Output

Performs the + operation. Read more
Source§

impl Add<&usize> for StepSize

Source§

type Output = usize

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &usize) -> <StepSize as Add<&usize>>::Output

Performs the + operation. Read more
Source§

impl Add<StepSize> for &isize

Source§

type Output = isize

The resulting type after applying the + operator.
Source§

fn add(self, rhs: StepSize) -> <&isize as Add<StepSize>>::Output

Performs the + operation. Read more
Source§

impl Add<StepSize> for &mut isize

Source§

type Output = isize

The resulting type after applying the + operator.
Source§

fn add(self, rhs: StepSize) -> <&mut isize as Add<StepSize>>::Output

Performs the + operation. Read more
Source§

impl Add<StepSize> for isize

Source§

type Output = isize

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<i16> for StepSize

Source§

type Output = i16

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<i32> for StepSize

Source§

type Output = i32

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<i64> for StepSize

Source§

type Output = i64

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<i8> for StepSize

Source§

type Output = i8

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<isize> for StepSize

Source§

type Output = isize

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u16> for StepSize

Source§

type Output = u16

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u32> for StepSize

Source§

type Output = u32

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u64> for StepSize

Source§

type Output = u64

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u8> for StepSize

Source§

type Output = u8

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<usize> for StepSize

Source§

type Output = usize

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl AsRef<str> for StepSize

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for StepSize

Source§

fn clone(&self) -> StepSize

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 Debug for StepSize

Source§

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

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

impl Default for StepSize

Source§

fn default() -> StepSize

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

impl Display for StepSize

Source§

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

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

impl Div<&i16> for StepSize

Source§

type Output = i16

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i16) -> <StepSize as Div<&i16>>::Output

Performs the / operation. Read more
Source§

impl Div<&i32> for StepSize

Source§

type Output = i32

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i32) -> <StepSize as Div<&i32>>::Output

Performs the / operation. Read more
Source§

impl Div<&i64> for StepSize

Source§

type Output = i64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i64) -> <StepSize as Div<&i64>>::Output

Performs the / operation. Read more
Source§

impl Div<&i8> for StepSize

Source§

type Output = i8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i8) -> <StepSize as Div<&i8>>::Output

Performs the / operation. Read more
Source§

impl Div<&isize> for StepSize

Source§

type Output = isize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &isize) -> <StepSize as Div<&isize>>::Output

Performs the / operation. Read more
Source§

impl Div<&mut i16> for StepSize

Source§

type Output = i16

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &mut i16) -> <StepSize as Div<&mut i16>>::Output

Performs the / operation. Read more
Source§

impl Div<&mut i32> for StepSize

Source§

type Output = i32

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &mut i32) -> <StepSize as Div<&mut i32>>::Output

Performs the / operation. Read more
Source§

impl Div<&mut i64> for StepSize

Source§

type Output = i64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &mut i64) -> <StepSize as Div<&mut i64>>::Output

Performs the / operation. Read more
Source§

impl Div<&mut i8> for StepSize

Source§

type Output = i8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &mut i8) -> <StepSize as Div<&mut i8>>::Output

Performs the / operation. Read more
Source§

impl Div<&mut isize> for StepSize

Source§

type Output = isize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &mut isize) -> <StepSize as Div<&mut isize>>::Output

Performs the / operation. Read more
Source§

impl Div<&mut u16> for StepSize

Source§

type Output = u16

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &mut u16) -> <StepSize as Div<&mut u16>>::Output

Performs the / operation. Read more
Source§

impl Div<&mut u32> for StepSize

Source§

type Output = u32

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &mut u32) -> <StepSize as Div<&mut u32>>::Output

Performs the / operation. Read more
Source§

impl Div<&mut u64> for StepSize

Source§

type Output = u64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &mut u64) -> <StepSize as Div<&mut u64>>::Output

Performs the / operation. Read more
Source§

impl Div<&mut u8> for StepSize

Source§

type Output = u8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &mut u8) -> <StepSize as Div<&mut u8>>::Output

Performs the / operation. Read more
Source§

impl Div<&mut usize> for StepSize

Source§

type Output = usize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &mut usize) -> <StepSize as Div<&mut usize>>::Output

Performs the / operation. Read more
Source§

impl Div<&u16> for StepSize

Source§

type Output = u16

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u16) -> <StepSize as Div<&u16>>::Output

Performs the / operation. Read more
Source§

impl Div<&u32> for StepSize

Source§

type Output = u32

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u32) -> <StepSize as Div<&u32>>::Output

Performs the / operation. Read more
Source§

impl Div<&u64> for StepSize

Source§

type Output = u64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u64) -> <StepSize as Div<&u64>>::Output

Performs the / operation. Read more
Source§

impl Div<&u8> for StepSize

Source§

type Output = u8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u8) -> <StepSize as Div<&u8>>::Output

Performs the / operation. Read more
Source§

impl Div<&usize> for StepSize

Source§

type Output = usize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &usize) -> <StepSize as Div<&usize>>::Output

Performs the / operation. Read more
Source§

impl Div<StepSize> for &isize

Source§

type Output = isize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: StepSize) -> <&isize as Div<StepSize>>::Output

Performs the / operation. Read more
Source§

impl Div<StepSize> for &mut isize

Source§

type Output = isize

The resulting type after applying the / operator.
Source§

fn div(self, rhs: StepSize) -> <&mut isize as Div<StepSize>>::Output

Performs the / operation. Read more
Source§

impl Div<StepSize> for isize

Source§

type Output = isize

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i16> for StepSize

Source§

type Output = i16

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i32> for StepSize

Source§

type Output = i32

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i64> for StepSize

Source§

type Output = i64

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i8> for StepSize

Source§

type Output = i8

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<isize> for StepSize

Source§

type Output = isize

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u16> for StepSize

Source§

type Output = u16

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u32> for StepSize

Source§

type Output = u32

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u64> for StepSize

Source§

type Output = u64

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u8> for StepSize

Source§

type Output = u8

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<usize> for StepSize

Source§

type Output = usize

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl EnumCount for StepSize

Source§

const COUNT: usize = 2usize

Source§

impl From<StepSize> for isize

Source§

fn from(value: StepSize) -> isize

Converts to this type from the input type.
Source§

impl From<i16> for StepSize

Source§

fn from(value: i16) -> StepSize

Converts to this type from the input type.
Source§

impl From<i32> for StepSize

Source§

fn from(value: i32) -> StepSize

Converts to this type from the input type.
Source§

impl From<i64> for StepSize

Source§

fn from(value: i64) -> StepSize

Converts to this type from the input type.
Source§

impl From<i8> for StepSize

Source§

fn from(value: i8) -> StepSize

Converts to this type from the input type.
Source§

impl From<isize> for StepSize

Source§

fn from(value: isize) -> StepSize

Converts to this type from the input type.
Source§

impl From<u16> for StepSize

Source§

fn from(value: u16) -> StepSize

Converts to this type from the input type.
Source§

impl From<u32> for StepSize

Source§

fn from(value: u32) -> StepSize

Converts to this type from the input type.
Source§

impl From<u64> for StepSize

Source§

fn from(value: u64) -> StepSize

Converts to this type from the input type.
Source§

impl From<u8> for StepSize

Source§

fn from(value: u8) -> StepSize

Converts to this type from the input type.
Source§

impl From<usize> for StepSize

Source§

fn from(value: usize) -> StepSize

Converts to this type from the input type.
Source§

impl Hash for StepSize

Source§

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

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

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

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

impl IntoEnumIterator for StepSize

Source§

impl Mul<&i16> for StepSize

Source§

type Output = i16

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i16) -> <StepSize as Mul<&i16>>::Output

Performs the * operation. Read more
Source§

impl Mul<&i32> for StepSize

Source§

type Output = i32

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i32) -> <StepSize as Mul<&i32>>::Output

Performs the * operation. Read more
Source§

impl Mul<&i64> for StepSize

Source§

type Output = i64

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i64) -> <StepSize as Mul<&i64>>::Output

Performs the * operation. Read more
Source§

impl Mul<&i8> for StepSize

Source§

type Output = i8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i8) -> <StepSize as Mul<&i8>>::Output

Performs the * operation. Read more
Source§

impl Mul<&isize> for StepSize

Source§

type Output = isize

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &isize) -> <StepSize as Mul<&isize>>::Output

Performs the * operation. Read more
Source§

impl Mul<&mut i16> for StepSize

Source§

type Output = i16

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &mut i16) -> <StepSize as Mul<&mut i16>>::Output

Performs the * operation. Read more
Source§

impl Mul<&mut i32> for StepSize

Source§

type Output = i32

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &mut i32) -> <StepSize as Mul<&mut i32>>::Output

Performs the * operation. Read more
Source§

impl Mul<&mut i64> for StepSize

Source§

type Output = i64

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &mut i64) -> <StepSize as Mul<&mut i64>>::Output

Performs the * operation. Read more
Source§

impl Mul<&mut i8> for StepSize

Source§

type Output = i8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &mut i8) -> <StepSize as Mul<&mut i8>>::Output

Performs the * operation. Read more
Source§

impl Mul<&mut isize> for StepSize

Source§

type Output = isize

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &mut isize) -> <StepSize as Mul<&mut isize>>::Output

Performs the * operation. Read more
Source§

impl Mul<&mut u16> for StepSize

Source§

type Output = u16

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &mut u16) -> <StepSize as Mul<&mut u16>>::Output

Performs the * operation. Read more
Source§

impl Mul<&mut u32> for StepSize

Source§

type Output = u32

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &mut u32) -> <StepSize as Mul<&mut u32>>::Output

Performs the * operation. Read more
Source§

impl Mul<&mut u64> for StepSize

Source§

type Output = u64

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &mut u64) -> <StepSize as Mul<&mut u64>>::Output

Performs the * operation. Read more
Source§

impl Mul<&mut u8> for StepSize

Source§

type Output = u8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &mut u8) -> <StepSize as Mul<&mut u8>>::Output

Performs the * operation. Read more
Source§

impl Mul<&mut usize> for StepSize

Source§

type Output = usize

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &mut usize) -> <StepSize as Mul<&mut usize>>::Output

Performs the * operation. Read more
Source§

impl Mul<&u16> for StepSize

Source§

type Output = u16

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u16) -> <StepSize as Mul<&u16>>::Output

Performs the * operation. Read more
Source§

impl Mul<&u32> for StepSize

Source§

type Output = u32

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u32) -> <StepSize as Mul<&u32>>::Output

Performs the * operation. Read more
Source§

impl Mul<&u64> for StepSize

Source§

type Output = u64

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u64) -> <StepSize as Mul<&u64>>::Output

Performs the * operation. Read more
Source§

impl Mul<&u8> for StepSize

Source§

type Output = u8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u8) -> <StepSize as Mul<&u8>>::Output

Performs the * operation. Read more
Source§

impl Mul<&usize> for StepSize

Source§

type Output = usize

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &usize) -> <StepSize as Mul<&usize>>::Output

Performs the * operation. Read more
Source§

impl Mul<StepSize> for &isize

Source§

type Output = isize

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StepSize) -> <&isize as Mul<StepSize>>::Output

Performs the * operation. Read more
Source§

impl Mul<StepSize> for &mut isize

Source§

type Output = isize

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: StepSize) -> <&mut isize as Mul<StepSize>>::Output

Performs the * operation. Read more
Source§

impl Mul<StepSize> for isize

Source§

type Output = isize

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i16> for StepSize

Source§

type Output = i16

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i32> for StepSize

Source§

type Output = i32

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i64> for StepSize

Source§

type Output = i64

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i8> for StepSize

Source§

type Output = i8

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<isize> for StepSize

Source§

type Output = isize

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u16> for StepSize

Source§

type Output = u16

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u32> for StepSize

Source§

type Output = u32

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u64> for StepSize

Source§

type Output = u64

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u8> for StepSize

Source§

type Output = u8

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<usize> for StepSize

Source§

type Output = usize

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Ord for StepSize

Source§

fn cmp(&self, other: &StepSize) -> 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 PartialEq for StepSize

Source§

fn eq(&self, other: &StepSize) -> 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 PartialOrd for StepSize

Source§

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

Source§

type Output = i16

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i16) -> <StepSize as Rem<&i16>>::Output

Performs the % operation. Read more
Source§

impl Rem<&i32> for StepSize

Source§

type Output = i32

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i32) -> <StepSize as Rem<&i32>>::Output

Performs the % operation. Read more
Source§

impl Rem<&i64> for StepSize

Source§

type Output = i64

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i64) -> <StepSize as Rem<&i64>>::Output

Performs the % operation. Read more
Source§

impl Rem<&i8> for StepSize

Source§

type Output = i8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i8) -> <StepSize as Rem<&i8>>::Output

Performs the % operation. Read more
Source§

impl Rem<&isize> for StepSize

Source§

type Output = isize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &isize) -> <StepSize as Rem<&isize>>::Output

Performs the % operation. Read more
Source§

impl Rem<&mut i16> for StepSize

Source§

type Output = i16

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &mut i16) -> <StepSize as Rem<&mut i16>>::Output

Performs the % operation. Read more
Source§

impl Rem<&mut i32> for StepSize

Source§

type Output = i32

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &mut i32) -> <StepSize as Rem<&mut i32>>::Output

Performs the % operation. Read more
Source§

impl Rem<&mut i64> for StepSize

Source§

type Output = i64

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &mut i64) -> <StepSize as Rem<&mut i64>>::Output

Performs the % operation. Read more
Source§

impl Rem<&mut i8> for StepSize

Source§

type Output = i8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &mut i8) -> <StepSize as Rem<&mut i8>>::Output

Performs the % operation. Read more
Source§

impl Rem<&mut isize> for StepSize

Source§

type Output = isize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &mut isize) -> <StepSize as Rem<&mut isize>>::Output

Performs the % operation. Read more
Source§

impl Rem<&mut u16> for StepSize

Source§

type Output = u16

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &mut u16) -> <StepSize as Rem<&mut u16>>::Output

Performs the % operation. Read more
Source§

impl Rem<&mut u32> for StepSize

Source§

type Output = u32

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &mut u32) -> <StepSize as Rem<&mut u32>>::Output

Performs the % operation. Read more
Source§

impl Rem<&mut u64> for StepSize

Source§

type Output = u64

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &mut u64) -> <StepSize as Rem<&mut u64>>::Output

Performs the % operation. Read more
Source§

impl Rem<&mut u8> for StepSize

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &mut u8) -> <StepSize as Rem<&mut u8>>::Output

Performs the % operation. Read more
Source§

impl Rem<&mut usize> for StepSize

Source§

type Output = usize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &mut usize) -> <StepSize as Rem<&mut usize>>::Output

Performs the % operation. Read more
Source§

impl Rem<&u16> for StepSize

Source§

type Output = u16

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u16) -> <StepSize as Rem<&u16>>::Output

Performs the % operation. Read more
Source§

impl Rem<&u32> for StepSize

Source§

type Output = u32

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u32) -> <StepSize as Rem<&u32>>::Output

Performs the % operation. Read more
Source§

impl Rem<&u64> for StepSize

Source§

type Output = u64

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u64) -> <StepSize as Rem<&u64>>::Output

Performs the % operation. Read more
Source§

impl Rem<&u8> for StepSize

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u8) -> <StepSize as Rem<&u8>>::Output

Performs the % operation. Read more
Source§

impl Rem<&usize> for StepSize

Source§

type Output = usize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &usize) -> <StepSize as Rem<&usize>>::Output

Performs the % operation. Read more
Source§

impl Rem<StepSize> for &isize

Source§

type Output = isize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: StepSize) -> <&isize as Rem<StepSize>>::Output

Performs the % operation. Read more
Source§

impl Rem<StepSize> for &mut isize

Source§

type Output = isize

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: StepSize) -> <&mut isize as Rem<StepSize>>::Output

Performs the % operation. Read more
Source§

impl Rem<StepSize> for isize

Source§

type Output = isize

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<i16> for StepSize

Source§

type Output = i16

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<i32> for StepSize

Source§

type Output = i32

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<i64> for StepSize

Source§

type Output = i64

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<i8> for StepSize

Source§

type Output = i8

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<isize> for StepSize

Source§

type Output = isize

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<u16> for StepSize

Source§

type Output = u16

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<u32> for StepSize

Source§

type Output = u32

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<u64> for StepSize

Source§

type Output = u64

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<u8> for StepSize

Source§

type Output = u8

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<usize> for StepSize

Source§

type Output = usize

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Sub<&i16> for StepSize

Source§

type Output = i16

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i16) -> <StepSize as Sub<&i16>>::Output

Performs the - operation. Read more
Source§

impl Sub<&i32> for StepSize

Source§

type Output = i32

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i32) -> <StepSize as Sub<&i32>>::Output

Performs the - operation. Read more
Source§

impl Sub<&i64> for StepSize

Source§

type Output = i64

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i64) -> <StepSize as Sub<&i64>>::Output

Performs the - operation. Read more
Source§

impl Sub<&i8> for StepSize

Source§

type Output = i8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i8) -> <StepSize as Sub<&i8>>::Output

Performs the - operation. Read more
Source§

impl Sub<&isize> for StepSize

Source§

type Output = isize

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &isize) -> <StepSize as Sub<&isize>>::Output

Performs the - operation. Read more
Source§

impl Sub<&mut i16> for StepSize

Source§

type Output = i16

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &mut i16) -> <StepSize as Sub<&mut i16>>::Output

Performs the - operation. Read more
Source§

impl Sub<&mut i32> for StepSize

Source§

type Output = i32

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &mut i32) -> <StepSize as Sub<&mut i32>>::Output

Performs the - operation. Read more
Source§

impl Sub<&mut i64> for StepSize

Source§

type Output = i64

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &mut i64) -> <StepSize as Sub<&mut i64>>::Output

Performs the - operation. Read more
Source§

impl Sub<&mut i8> for StepSize

Source§

type Output = i8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &mut i8) -> <StepSize as Sub<&mut i8>>::Output

Performs the - operation. Read more
Source§

impl Sub<&mut isize> for StepSize

Source§

type Output = isize

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &mut isize) -> <StepSize as Sub<&mut isize>>::Output

Performs the - operation. Read more
Source§

impl Sub<&mut u16> for StepSize

Source§

type Output = u16

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &mut u16) -> <StepSize as Sub<&mut u16>>::Output

Performs the - operation. Read more
Source§

impl Sub<&mut u32> for StepSize

Source§

type Output = u32

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &mut u32) -> <StepSize as Sub<&mut u32>>::Output

Performs the - operation. Read more
Source§

impl Sub<&mut u64> for StepSize

Source§

type Output = u64

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &mut u64) -> <StepSize as Sub<&mut u64>>::Output

Performs the - operation. Read more
Source§

impl Sub<&mut u8> for StepSize

Source§

type Output = u8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &mut u8) -> <StepSize as Sub<&mut u8>>::Output

Performs the - operation. Read more
Source§

impl Sub<&mut usize> for StepSize

Source§

type Output = usize

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &mut usize) -> <StepSize as Sub<&mut usize>>::Output

Performs the - operation. Read more
Source§

impl Sub<&u16> for StepSize

Source§

type Output = u16

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u16) -> <StepSize as Sub<&u16>>::Output

Performs the - operation. Read more
Source§

impl Sub<&u32> for StepSize

Source§

type Output = u32

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u32) -> <StepSize as Sub<&u32>>::Output

Performs the - operation. Read more
Source§

impl Sub<&u64> for StepSize

Source§

type Output = u64

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u64) -> <StepSize as Sub<&u64>>::Output

Performs the - operation. Read more
Source§

impl Sub<&u8> for StepSize

Source§

type Output = u8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u8) -> <StepSize as Sub<&u8>>::Output

Performs the - operation. Read more
Source§

impl Sub<&usize> for StepSize

Source§

type Output = usize

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &usize) -> <StepSize as Sub<&usize>>::Output

Performs the - operation. Read more
Source§

impl Sub<StepSize> for &isize

Source§

type Output = isize

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: StepSize) -> <&isize as Sub<StepSize>>::Output

Performs the - operation. Read more
Source§

impl Sub<StepSize> for &mut isize

Source§

type Output = isize

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: StepSize) -> <&mut isize as Sub<StepSize>>::Output

Performs the - operation. Read more
Source§

impl Sub<StepSize> for isize

Source§

type Output = isize

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<i16> for StepSize

Source§

type Output = i16

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<i32> for StepSize

Source§

type Output = i32

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<i64> for StepSize

Source§

type Output = i64

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<i8> for StepSize

Source§

type Output = i8

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<isize> for StepSize

Source§

type Output = isize

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u16> for StepSize

Source§

type Output = u16

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u32> for StepSize

Source§

type Output = u32

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u64> for StepSize

Source§

type Output = u64

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u8> for StepSize

Source§

type Output = u8

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<usize> for StepSize

Source§

type Output = usize

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl VariantArray for StepSize

Source§

const VARIANTS: &'static [StepSize]

Source§

impl VariantNames for StepSize

Source§

const VARIANTS: &'static [&'static str]

Names of the variants of this enum
Source§

impl Copy for StepSize

Source§

impl Eq for StepSize

Source§

impl StructuralPartialEq for StepSize

Auto Trait Implementations§

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> AsWeight<T> for T
where T: Clone + IntoWeight<T>,

Source§

fn as_weight(&self) -> Weight<T>

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> IntoEither for T

Source§

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

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

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

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

impl<T> IntoWeight<T> for T

Source§

impl<A, B, C> PyMod<B> for A
where B: OrderedNum, C: OrderedNum<Output = C> + Add<B>, A: for<'a> Rem<&'a B, Output = C>,

Source§

type Output = C

Source§

fn pymod(self, rhs: B) -> <A as PyMod<B>>::Output

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

impl<T> Wrapper<T> for T

Source§

type Cont<U> = U

Source§

fn get(&self) -> &T

returns a reference to the inner value
Source§

fn view(&self) -> <T as Wrapper<T>>::Cont<&T>

returns a view of the container containing an immutable reference to the inner value
Source§

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

Source§

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