Struct smufl::StaffSpaces
source · pub struct StaffSpaces(pub f64);
Expand description
The primary unit of measurement for SMuFL fonts.
Tuple Fields§
§0: f64
Implementations§
source§impl StaffSpaces
impl StaffSpaces
Trait Implementations§
source§impl Add<StaffSpaces> for StaffSpaces
impl Add<StaffSpaces> for StaffSpaces
source§impl AddAssign<StaffSpaces> for StaffSpaces
impl AddAssign<StaffSpaces> for StaffSpaces
source§fn add_assign(&mut self, StaffSpaces: Self)
fn add_assign(&mut self, StaffSpaces: Self)
Performs the
+=
operation. Read moresource§impl Clone for StaffSpaces
impl Clone for StaffSpaces
source§fn clone(&self) -> StaffSpaces
fn clone(&self) -> StaffSpaces
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StaffSpaces
impl Debug for StaffSpaces
source§impl Default for StaffSpaces
impl Default for StaffSpaces
source§fn default() -> StaffSpaces
fn default() -> StaffSpaces
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StaffSpaces
impl<'de> Deserialize<'de> for StaffSpaces
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Div<StaffSpaces> for StaffSpaces
impl Div<StaffSpaces> for StaffSpaces
source§impl Div<f64> for StaffSpaces
impl Div<f64> for StaffSpaces
source§impl From<StaffSpaces> for f64
impl From<StaffSpaces> for f64
source§fn from(value: StaffSpaces) -> Self
fn from(value: StaffSpaces) -> Self
Converts to this type from the input type.
source§impl From<f32> for StaffSpaces
impl From<f32> for StaffSpaces
source§impl From<f64> for StaffSpaces
impl From<f64> for StaffSpaces
source§impl From<i16> for StaffSpaces
impl From<i16> for StaffSpaces
source§impl From<i32> for StaffSpaces
impl From<i32> for StaffSpaces
source§impl From<i8> for StaffSpaces
impl From<i8> for StaffSpaces
source§impl From<u16> for StaffSpaces
impl From<u16> for StaffSpaces
source§impl From<u32> for StaffSpaces
impl From<u32> for StaffSpaces
source§impl From<u8> for StaffSpaces
impl From<u8> for StaffSpaces
source§impl Mul<StaffSpaces> for StaffSpaces
impl Mul<StaffSpaces> for StaffSpaces
source§impl Mul<f64> for StaffSpaces
impl Mul<f64> for StaffSpaces
source§impl PartialEq<StaffSpaces> for StaffSpaces
impl PartialEq<StaffSpaces> for StaffSpaces
source§fn eq(&self, other: &StaffSpaces) -> bool
fn eq(&self, other: &StaffSpaces) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StaffSpaces> for StaffSpaces
impl PartialOrd<StaffSpaces> for StaffSpaces
source§fn partial_cmp(&self, other: &StaffSpaces) -> Option<Ordering>
fn partial_cmp(&self, other: &StaffSpaces) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Sub<StaffSpaces> for StaffSpaces
impl Sub<StaffSpaces> for StaffSpaces
source§impl SubAssign<StaffSpaces> for StaffSpaces
impl SubAssign<StaffSpaces> for StaffSpaces
source§fn sub_assign(&mut self, StaffSpaces: Self)
fn sub_assign(&mut self, StaffSpaces: Self)
Performs the
-=
operation. Read more