Beat

Struct Beat 

Source
pub struct Beat(pub u64, pub u64);

Tuple Fields§

§0: u64§1: u64

Implementations§

Source§

impl Beat

Source

pub fn new<Value: Into<Self>>(value: Value) -> Self

Source

pub fn reduce(self) -> Self

Source

pub fn simplify(self, denominator: u64) -> Self

Source

pub fn truncate(self) -> Self

Source

pub fn ceil(self) -> Self

Source

pub fn is_whole(&self) -> bool

Source

pub fn whole(self) -> u64

Source

pub fn try_into_whole(&self) -> Option<u64>

Source

pub fn fraction(self) -> Self

Source

pub fn as_ratio(self) -> Ratio<u64>

Source

pub fn as_f32(self) -> f32

Source

pub fn as_f64(self) -> f64

Source§

impl Beat

Trait Implementations§

Source§

impl Add<(i16, i16)> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: (i16, i16)) -> Self

Performs the + operation. Read more
Source§

impl Add<(i32, i32)> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: (i32, i32)) -> Self

Performs the + operation. Read more
Source§

impl Add<(i64, i64)> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: (i64, i64)) -> Self

Performs the + operation. Read more
Source§

impl Add<(i8, i8)> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: (i8, i8)) -> Self

Performs the + operation. Read more
Source§

impl Add<(isize, isize)> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: (isize, isize)) -> Self

Performs the + operation. Read more
Source§

impl Add<(u16, u16)> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: (u16, u16)) -> Self

Performs the + operation. Read more
Source§

impl Add<(u32, u32)> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: (u32, u32)) -> Self

Performs the + operation. Read more
Source§

impl Add<(u64, u64)> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: (u64, u64)) -> Self

Performs the + operation. Read more
Source§

impl Add<(u8, u8)> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: (u8, u8)) -> Self

Performs the + operation. Read more
Source§

impl Add<(usize, usize)> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: (usize, usize)) -> Self

Performs the + operation. Read more
Source§

impl Add<Beat> for CompoundDuration

Source§

type Output = CompoundDuration

The resulting type after applying the + operator.
Source§

fn add(self, beat: Beat) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Beat> for Measure

Source§

type Output = CompoundDuration

The resulting type after applying the + operator.
Source§

fn add(self, value: Beat) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Measure> for Beat

Source§

type Output = CompoundDuration

The resulting type after applying the + operator.
Source§

fn add(self, value: Measure) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i16> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i16) -> Self

Performs the + operation. Read more
Source§

impl Add<i32> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i32) -> Self

Performs the + operation. Read more
Source§

impl Add<i64> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i64) -> Self

Performs the + operation. Read more
Source§

impl Add<i8> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i8) -> Self

Performs the + operation. Read more
Source§

impl Add<isize> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: isize) -> Self

Performs the + operation. Read more
Source§

impl Add<u16> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u16) -> Self

Performs the + operation. Read more
Source§

impl Add<u32> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u32) -> Self

Performs the + operation. Read more
Source§

impl Add<u64> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u64) -> Self

Performs the + operation. Read more
Source§

impl Add<u8> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u8) -> Self

Performs the + operation. Read more
Source§

impl Add<usize> for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: usize) -> Self

Performs the + operation. Read more
Source§

impl Add for Beat

Source§

type Output = Beat

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self

Performs the + operation. Read more
Source§

impl AddAssign<(i16, i16)> for Beat

Source§

fn add_assign(&mut self, rhs: (i16, i16))

Performs the += operation. Read more
Source§

impl AddAssign<(i32, i32)> for Beat

Source§

fn add_assign(&mut self, rhs: (i32, i32))

Performs the += operation. Read more
Source§

impl AddAssign<(i64, i64)> for Beat

Source§

fn add_assign(&mut self, rhs: (i64, i64))

Performs the += operation. Read more
Source§

impl AddAssign<(i8, i8)> for Beat

Source§

fn add_assign(&mut self, rhs: (i8, i8))

Performs the += operation. Read more
Source§

impl AddAssign<(isize, isize)> for Beat

Source§

fn add_assign(&mut self, rhs: (isize, isize))

Performs the += operation. Read more
Source§

impl AddAssign<(u16, u16)> for Beat

Source§

fn add_assign(&mut self, rhs: (u16, u16))

Performs the += operation. Read more
Source§

impl AddAssign<(u32, u32)> for Beat

Source§

fn add_assign(&mut self, rhs: (u32, u32))

Performs the += operation. Read more
Source§

impl AddAssign<(u64, u64)> for Beat

Source§

fn add_assign(&mut self, rhs: (u64, u64))

Performs the += operation. Read more
Source§

impl AddAssign<(u8, u8)> for Beat

Source§

fn add_assign(&mut self, rhs: (u8, u8))

Performs the += operation. Read more
Source§

impl AddAssign<(usize, usize)> for Beat

Source§

fn add_assign(&mut self, rhs: (usize, usize))

Performs the += operation. Read more
Source§

impl AddAssign<Beat> for CompoundDuration

Source§

fn add_assign(&mut self, beat: Beat)

Performs the += operation. Read more
Source§

impl AddAssign<i16> for Beat

Source§

fn add_assign(&mut self, rhs: i16)

Performs the += operation. Read more
Source§

impl AddAssign<i32> for Beat

Source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
Source§

impl AddAssign<i64> for Beat

Source§

fn add_assign(&mut self, rhs: i64)

Performs the += operation. Read more
Source§

impl AddAssign<i8> for Beat

Source§

fn add_assign(&mut self, rhs: i8)

Performs the += operation. Read more
Source§

impl AddAssign<isize> for Beat

Source§

fn add_assign(&mut self, rhs: isize)

Performs the += operation. Read more
Source§

impl AddAssign<u16> for Beat

Source§

fn add_assign(&mut self, rhs: u16)

Performs the += operation. Read more
Source§

impl AddAssign<u32> for Beat

Source§

fn add_assign(&mut self, rhs: u32)

Performs the += operation. Read more
Source§

impl AddAssign<u64> for Beat

Source§

fn add_assign(&mut self, rhs: u64)

Performs the += operation. Read more
Source§

impl AddAssign<u8> for Beat

Source§

fn add_assign(&mut self, rhs: u8)

Performs the += operation. Read more
Source§

impl AddAssign<usize> for Beat

Source§

fn add_assign(&mut self, rhs: usize)

Performs the += operation. Read more
Source§

impl AddAssign for Beat

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl Clone for Beat

Source§

fn clone(&self) -> Beat

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 Beat

Source§

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

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

impl Default for Beat

Source§

fn default() -> Self

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

impl Display for Beat

Source§

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

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

impl Div<(i16, i16)> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<(i32, i32)> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<(i64, i64)> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<(i8, i8)> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<(isize, isize)> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<(u16, u16)> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<(u32, u32)> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<(u64, u64)> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<(u8, u8)> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<(usize, usize)> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<TimeSignature> for Beat

Source§

type Output = Measure

The resulting type after applying the / operator.
Source§

fn div(self, time_signature: TimeSignature) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i16> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i32> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i64> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i8> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<isize> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u16> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u32> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u64> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u8> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<usize> for Beat

Source§

type Output = Beat

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div for Beat

Source§

type Output = Ratio<u64>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl DivAssign<(i16, i16)> for Beat

Source§

fn div_assign(&mut self, rhs: (i16, i16))

Performs the /= operation. Read more
Source§

impl DivAssign<(i32, i32)> for Beat

Source§

fn div_assign(&mut self, rhs: (i32, i32))

Performs the /= operation. Read more
Source§

impl DivAssign<(i64, i64)> for Beat

Source§

fn div_assign(&mut self, rhs: (i64, i64))

Performs the /= operation. Read more
Source§

impl DivAssign<(i8, i8)> for Beat

Source§

fn div_assign(&mut self, rhs: (i8, i8))

Performs the /= operation. Read more
Source§

impl DivAssign<(isize, isize)> for Beat

Source§

fn div_assign(&mut self, rhs: (isize, isize))

Performs the /= operation. Read more
Source§

impl DivAssign<(u16, u16)> for Beat

Source§

fn div_assign(&mut self, rhs: (u16, u16))

Performs the /= operation. Read more
Source§

impl DivAssign<(u32, u32)> for Beat

Source§

fn div_assign(&mut self, rhs: (u32, u32))

Performs the /= operation. Read more
Source§

impl DivAssign<(u64, u64)> for Beat

Source§

fn div_assign(&mut self, rhs: (u64, u64))

Performs the /= operation. Read more
Source§

impl DivAssign<(u8, u8)> for Beat

Source§

fn div_assign(&mut self, rhs: (u8, u8))

Performs the /= operation. Read more
Source§

impl DivAssign<(usize, usize)> for Beat

Source§

fn div_assign(&mut self, rhs: (usize, usize))

Performs the /= operation. Read more
Source§

impl DivAssign<i16> for Beat

Source§

fn div_assign(&mut self, rhs: i16)

Performs the /= operation. Read more
Source§

impl DivAssign<i32> for Beat

Source§

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
Source§

impl DivAssign<i64> for Beat

Source§

fn div_assign(&mut self, rhs: i64)

Performs the /= operation. Read more
Source§

impl DivAssign<i8> for Beat

Source§

fn div_assign(&mut self, rhs: i8)

Performs the /= operation. Read more
Source§

impl DivAssign<isize> for Beat

Source§

fn div_assign(&mut self, rhs: isize)

Performs the /= operation. Read more
Source§

impl DivAssign<u16> for Beat

Source§

fn div_assign(&mut self, rhs: u16)

Performs the /= operation. Read more
Source§

impl DivAssign<u32> for Beat

Source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
Source§

impl DivAssign<u64> for Beat

Source§

fn div_assign(&mut self, rhs: u64)

Performs the /= operation. Read more
Source§

impl DivAssign<u8> for Beat

Source§

fn div_assign(&mut self, rhs: u8)

Performs the /= operation. Read more
Source§

impl DivAssign<usize> for Beat

Source§

fn div_assign(&mut self, rhs: usize)

Performs the /= operation. Read more
Source§

impl From<(i16, i16)> for Beat

Source§

fn from(value: (i16, i16)) -> Self

Converts to this type from the input type.
Source§

impl From<(i32, i32)> for Beat

Source§

fn from(value: (i32, i32)) -> Self

Converts to this type from the input type.
Source§

impl From<(i64, i64)> for Beat

Source§

fn from(value: (i64, i64)) -> Self

Converts to this type from the input type.
Source§

impl From<(i8, i8)> for Beat

Source§

fn from(value: (i8, i8)) -> Self

Converts to this type from the input type.
Source§

impl From<(isize, isize)> for Beat

Source§

fn from(value: (isize, isize)) -> Self

Converts to this type from the input type.
Source§

impl From<(u16, u16)> for Beat

Source§

fn from(value: (u16, u16)) -> Self

Converts to this type from the input type.
Source§

impl From<(u32, u32)> for Beat

Source§

fn from(value: (u32, u32)) -> Self

Converts to this type from the input type.
Source§

impl From<(u64, u64)> for Beat

Source§

fn from(value: (u64, u64)) -> Self

Converts to this type from the input type.
Source§

impl From<(u8, u8)> for Beat

Source§

fn from(value: (u8, u8)) -> Self

Converts to this type from the input type.
Source§

impl From<(usize, usize)> for Beat

Source§

fn from(value: (usize, usize)) -> Self

Converts to this type from the input type.
Source§

impl From<Beat> for CompoundDuration

Source§

fn from(beat: Beat) -> Self

Converts to this type from the input type.
Source§

impl From<Beat> for f32

Source§

fn from(value: Beat) -> f32

Converts to this type from the input type.
Source§

impl From<Beat> for f64

Source§

fn from(value: Beat) -> f64

Converts to this type from the input type.
Source§

impl From<i16> for Beat

Source§

fn from(value: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Beat

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Beat

Source§

fn from(value: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for Beat

Source§

fn from(value: i8) -> Self

Converts to this type from the input type.
Source§

impl From<isize> for Beat

Source§

fn from(value: isize) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Beat

Source§

fn from(value: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Beat

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for Beat

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Beat

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl From<usize> for Beat

Source§

fn from(value: usize) -> Self

Converts to this type from the input type.
Source§

impl Hash for Beat

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 Mul<(i16, i16)> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<(i32, i32)> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<(i64, i64)> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<(i8, i8)> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<(isize, isize)> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<(u16, u16)> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<(u32, u32)> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<(u64, u64)> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<(u8, u8)> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<(usize, usize)> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Beat> for Tempo

Source§

type Output = Duration

The resulting type after applying the * operator.
Source§

fn mul(self, beat: Beat) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Beat> for TimeContext

Source§

type Output = Duration

The resulting type after applying the * operator.
Source§

fn mul(self, beats: Beat) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<TimeSignature> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

fn mul(self, time_signature: TimeSignature) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i16> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i32> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i64> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i8> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<isize> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u16> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u32> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u64> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u8> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<usize> for Beat

Source§

type Output = Beat

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl MulAssign<(i16, i16)> for Beat

Source§

fn mul_assign(&mut self, rhs: (i16, i16))

Performs the *= operation. Read more
Source§

impl MulAssign<(i32, i32)> for Beat

Source§

fn mul_assign(&mut self, rhs: (i32, i32))

Performs the *= operation. Read more
Source§

impl MulAssign<(i64, i64)> for Beat

Source§

fn mul_assign(&mut self, rhs: (i64, i64))

Performs the *= operation. Read more
Source§

impl MulAssign<(i8, i8)> for Beat

Source§

fn mul_assign(&mut self, rhs: (i8, i8))

Performs the *= operation. Read more
Source§

impl MulAssign<(isize, isize)> for Beat

Source§

fn mul_assign(&mut self, rhs: (isize, isize))

Performs the *= operation. Read more
Source§

impl MulAssign<(u16, u16)> for Beat

Source§

fn mul_assign(&mut self, rhs: (u16, u16))

Performs the *= operation. Read more
Source§

impl MulAssign<(u32, u32)> for Beat

Source§

fn mul_assign(&mut self, rhs: (u32, u32))

Performs the *= operation. Read more
Source§

impl MulAssign<(u64, u64)> for Beat

Source§

fn mul_assign(&mut self, rhs: (u64, u64))

Performs the *= operation. Read more
Source§

impl MulAssign<(u8, u8)> for Beat

Source§

fn mul_assign(&mut self, rhs: (u8, u8))

Performs the *= operation. Read more
Source§

impl MulAssign<(usize, usize)> for Beat

Source§

fn mul_assign(&mut self, rhs: (usize, usize))

Performs the *= operation. Read more
Source§

impl MulAssign<i16> for Beat

Source§

fn mul_assign(&mut self, rhs: i16)

Performs the *= operation. Read more
Source§

impl MulAssign<i32> for Beat

Source§

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
Source§

impl MulAssign<i64> for Beat

Source§

fn mul_assign(&mut self, rhs: i64)

Performs the *= operation. Read more
Source§

impl MulAssign<i8> for Beat

Source§

fn mul_assign(&mut self, rhs: i8)

Performs the *= operation. Read more
Source§

impl MulAssign<isize> for Beat

Source§

fn mul_assign(&mut self, rhs: isize)

Performs the *= operation. Read more
Source§

impl MulAssign<u16> for Beat

Source§

fn mul_assign(&mut self, rhs: u16)

Performs the *= operation. Read more
Source§

impl MulAssign<u32> for Beat

Source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
Source§

impl MulAssign<u64> for Beat

Source§

fn mul_assign(&mut self, rhs: u64)

Performs the *= operation. Read more
Source§

impl MulAssign<u8> for Beat

Source§

fn mul_assign(&mut self, rhs: u8)

Performs the *= operation. Read more
Source§

impl MulAssign<usize> for Beat

Source§

fn mul_assign(&mut self, rhs: usize)

Performs the *= operation. Read more
Source§

impl Ord for Beat

Source§

fn cmp(&self, other: &Self) -> 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<Beat> for Timecode

Source§

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

Source§

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

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

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

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

impl PartialEq<i32> for Beat

Source§

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

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

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

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

impl PartialEq<i64> for Beat

Source§

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

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

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

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

impl PartialEq<i8> for Beat

Source§

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

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

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

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

impl PartialEq<isize> for Beat

Source§

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

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

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

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

impl PartialEq<u16> for Beat

Source§

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

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

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

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

impl PartialEq<u32> for Beat

Source§

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

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

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

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

impl PartialEq<u64> for Beat

Source§

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

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

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

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

impl PartialEq<u8> for Beat

Source§

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

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

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

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

impl PartialEq<usize> for Beat

Source§

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

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

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

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

impl PartialEq for Beat

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 PartialOrd<Beat> for Timecode

Source§

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

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

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

impl PartialOrd<i32> for Beat

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

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

impl PartialOrd<i64> for Beat

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

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

impl PartialOrd<i8> for Beat

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

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

impl PartialOrd<isize> for Beat

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

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

impl PartialOrd<u16> for Beat

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

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

impl PartialOrd<u32> for Beat

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

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

impl PartialOrd<u64> for Beat

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

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

impl PartialOrd<u8> for Beat

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

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

impl PartialOrd<usize> for Beat

Source§

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

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

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

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

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

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

impl PartialOrd for Beat

Source§

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

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: (i16, i16)) -> Self

Performs the - operation. Read more
Source§

impl Sub<(i32, i32)> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: (i32, i32)) -> Self

Performs the - operation. Read more
Source§

impl Sub<(i64, i64)> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: (i64, i64)) -> Self

Performs the - operation. Read more
Source§

impl Sub<(i8, i8)> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: (i8, i8)) -> Self

Performs the - operation. Read more
Source§

impl Sub<(isize, isize)> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: (isize, isize)) -> Self

Performs the - operation. Read more
Source§

impl Sub<(u16, u16)> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: (u16, u16)) -> Self

Performs the - operation. Read more
Source§

impl Sub<(u32, u32)> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: (u32, u32)) -> Self

Performs the - operation. Read more
Source§

impl Sub<(u64, u64)> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: (u64, u64)) -> Self

Performs the - operation. Read more
Source§

impl Sub<(u8, u8)> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: (u8, u8)) -> Self

Performs the - operation. Read more
Source§

impl Sub<(usize, usize)> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: (usize, usize)) -> Self

Performs the - operation. Read more
Source§

impl Sub<Beat> for CompoundDuration

Source§

type Output = CompoundDuration

The resulting type after applying the - operator.
Source§

fn sub(self, beat: Beat) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Beat> for Measure

Source§

type Output = CompoundDuration

The resulting type after applying the - operator.
Source§

fn sub(self, value: Beat) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Measure> for Beat

Source§

type Output = CompoundDuration

The resulting type after applying the - operator.
Source§

fn sub(self, value: Measure) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i16> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i16) -> Self

Performs the - operation. Read more
Source§

impl Sub<i32> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i32) -> Self

Performs the - operation. Read more
Source§

impl Sub<i64> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i64) -> Self

Performs the - operation. Read more
Source§

impl Sub<i8> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i8) -> Self

Performs the - operation. Read more
Source§

impl Sub<isize> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: isize) -> Self

Performs the - operation. Read more
Source§

impl Sub<u16> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u16) -> Self

Performs the - operation. Read more
Source§

impl Sub<u32> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u32) -> Self

Performs the - operation. Read more
Source§

impl Sub<u64> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u64) -> Self

Performs the - operation. Read more
Source§

impl Sub<u8> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u8) -> Self

Performs the - operation. Read more
Source§

impl Sub<usize> for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: usize) -> Self

Performs the - operation. Read more
Source§

impl Sub for Beat

Source§

type Output = Beat

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
Source§

impl SubAssign<(i16, i16)> for Beat

Source§

fn sub_assign(&mut self, rhs: (i16, i16))

Performs the -= operation. Read more
Source§

impl SubAssign<(i32, i32)> for Beat

Source§

fn sub_assign(&mut self, rhs: (i32, i32))

Performs the -= operation. Read more
Source§

impl SubAssign<(i64, i64)> for Beat

Source§

fn sub_assign(&mut self, rhs: (i64, i64))

Performs the -= operation. Read more
Source§

impl SubAssign<(i8, i8)> for Beat

Source§

fn sub_assign(&mut self, rhs: (i8, i8))

Performs the -= operation. Read more
Source§

impl SubAssign<(isize, isize)> for Beat

Source§

fn sub_assign(&mut self, rhs: (isize, isize))

Performs the -= operation. Read more
Source§

impl SubAssign<(u16, u16)> for Beat

Source§

fn sub_assign(&mut self, rhs: (u16, u16))

Performs the -= operation. Read more
Source§

impl SubAssign<(u32, u32)> for Beat

Source§

fn sub_assign(&mut self, rhs: (u32, u32))

Performs the -= operation. Read more
Source§

impl SubAssign<(u64, u64)> for Beat

Source§

fn sub_assign(&mut self, rhs: (u64, u64))

Performs the -= operation. Read more
Source§

impl SubAssign<(u8, u8)> for Beat

Source§

fn sub_assign(&mut self, rhs: (u8, u8))

Performs the -= operation. Read more
Source§

impl SubAssign<(usize, usize)> for Beat

Source§

fn sub_assign(&mut self, rhs: (usize, usize))

Performs the -= operation. Read more
Source§

impl SubAssign<Beat> for CompoundDuration

Source§

fn sub_assign(&mut self, beat: Beat)

Performs the -= operation. Read more
Source§

impl SubAssign<i16> for Beat

Source§

fn sub_assign(&mut self, rhs: i16)

Performs the -= operation. Read more
Source§

impl SubAssign<i32> for Beat

Source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
Source§

impl SubAssign<i64> for Beat

Source§

fn sub_assign(&mut self, rhs: i64)

Performs the -= operation. Read more
Source§

impl SubAssign<i8> for Beat

Source§

fn sub_assign(&mut self, rhs: i8)

Performs the -= operation. Read more
Source§

impl SubAssign<isize> for Beat

Source§

fn sub_assign(&mut self, rhs: isize)

Performs the -= operation. Read more
Source§

impl SubAssign<u16> for Beat

Source§

fn sub_assign(&mut self, rhs: u16)

Performs the -= operation. Read more
Source§

impl SubAssign<u32> for Beat

Source§

fn sub_assign(&mut self, rhs: u32)

Performs the -= operation. Read more
Source§

impl SubAssign<u64> for Beat

Source§

fn sub_assign(&mut self, rhs: u64)

Performs the -= operation. Read more
Source§

impl SubAssign<u8> for Beat

Source§

fn sub_assign(&mut self, rhs: u8)

Performs the -= operation. Read more
Source§

impl SubAssign<usize> for Beat

Source§

fn sub_assign(&mut self, rhs: usize)

Performs the -= operation. Read more
Source§

impl SubAssign for Beat

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl Copy for Beat

Source§

impl Eq for Beat

Auto Trait Implementations§

§

impl Freeze for Beat

§

impl RefUnwindSafe for Beat

§

impl Send for Beat

§

impl Sync for Beat

§

impl Unpin for Beat

§

impl UnwindSafe for Beat

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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

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

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