pub enum Length {
Show 129 variants _128th, _D188, _64th, _D313, _D375, _D438, _32nd, _D563, _D625, _D688, _D750, _D813, _D875, _D938, _16th, _1D06, _1D13, _1D19, _1D25, _1D31, _1D38, _1D44, _1D50, _1D56, _1D63, _1D69, _1D75, _1D81, _1D88, _1D94, _8th, _2D13, _2D25, _2D38, _2D50, _2D63, _2D75, _2D88, _3, _3D13, _3D25, _3D38, _3D50, _3D63, _3D75, _3D88, Quarter, _4D25, _4D50, _4D75, _5, _5D25, _5D50, _5D75, _6, _6D25, _6D50, _6D75, _7, _7D25, _7D50, _7D75, Half, _8D50, _9, _9D50, _10, _10D5, _11, _11D5, _12, _12D5, _13, _13D5, _14, _14D5, _15, _15D5, Whole, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, DoubleWhole, _34, _36, _38, _40, _42, _44, _46, _48, _50, _52, _54, _56, _58, _60, _62, _64, _68, _72, _76, _80, _84, _88, _92, _96, _100, _104, _108, _112, _116, _120, _124, _128, Infinite, Unset,
}
Expand description

Length type which can be used for note lengths and retrig lengths.

Variants§

§

_128th

1/128

§

_D188

.188

§

_64th

1/64

§

_D313

.313

§

_D375

.375

§

_D438

.438

§

_32nd

1/32

§

_D563

.563

§

_D625

.625

§

_D688

.688

§

_D750

.75

§

_D813

.813

§

_D875

.875

§

_D938

.938

§

_16th

1/16

§

_1D06

1.06

§

_1D13

1.13

§

_1D19

1.19

§

_1D25

1.25

§

_1D31

1.31

§

_1D38

1.38

§

_1D44

1.44

§

_1D50

1.5

§

_1D56

1.56

§

_1D63

1.63

§

_1D69

1.69

§

_1D75

1.75

§

_1D81

1.81

§

_1D88

1.88

§

_1D94

1.94

§

_8th

1/8

§

_2D13

2.13

§

_2D25

2.25

§

_2D38

2.38

§

_2D50

2.5

§

_2D63

2.63

§

_2D75

2.75

§

_2D88

2.88

§

_3

3

§

_3D13

3.13

§

_3D25

3.25

§

_3D38

3.38

§

_3D50

3.5

§

_3D63

3.63

§

_3D75

3.75

§

_3D88

3.88

§

Quarter

1/4

§

_4D25

4.25

§

_4D50

4.5

§

_4D75

4.75

§

_5

5

§

_5D25

5.25

§

_5D50

5.5

§

_5D75

5.75

§

_6

6

§

_6D25

6.25

§

_6D50

6.5

§

_6D75

6.75

§

_7

7

§

_7D25

7.25

§

_7D50

7.5

§

_7D75

7.75

§

Half

1/2

§

_8D50

8.5

§

_9

9

§

_9D50

9.5

§

_10

10

§

_10D5

10.5

§

_11

11

§

_11D5

11.5

§

_12

12

§

_12D5

12.5

§

_13

13

§

_13D5

13.5

§

_14

14

§

_14D5

14.5

§

_15

15

§

_15D5

15.5

§

Whole

1/1

§

_17

17

§

_18

18

§

_19

19

§

_20

20

§

_21

21

§

_22

22

§

_23

23

§

_24

24

§

_25

25

§

_26

26

§

_27

27

§

_28

28

§

_29

29

§

_30

30

§

_31

31

§

DoubleWhole

32

§

_34

34

§

_36

36

§

_38

38

§

_40

40

§

_42

42

§

_44

44

§

_46

46

§

_48

48

§

_50

50

§

_52

52

§

_54

54

§

_56

56

§

_58

58

§

_60

60

§

_62

62

§

_64

64

§

_68

68

§

_72

72

§

_76

76

§

_80

80

§

_84

84

§

_88

88

§

_92

92

§

_96

96

§

_100

100

§

_104

104

§

_108

108

§

_112

112

§

_116

116

§

_120

120

§

_124

124

§

_128

128

§

Infinite

inf

§

Unset

Default value for unset values.

`0xFF``

Trait Implementations§

source§

impl Clone for Length

source§

fn clone(&self) -> Length

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for Length

source§

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

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

impl Default for Length

source§

fn default() -> Length

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

impl<'de> Deserialize<'de> for Length

source§

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 From<Length> for &str

source§

fn from(length: Length) -> Self

Converts to this type from the input type.
source§

impl From<Length> for u8

source§

fn from(item: Length) -> Self

Converts to this type from the input type.
source§

impl Hash for Length

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 Ord for Length

source§

fn cmp(&self, other: &Length) -> 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 + PartialOrd,

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

impl PartialEq for Length

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Length

source§

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

This method 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

This method 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

This method 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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for Length

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<&str> for Length

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(length: &str) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u8> for Length

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for Length

source§

impl Eq for Length

source§

impl StructuralEq for Length

source§

impl StructuralPartialEq for Length

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

§

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, U> TryFrom<U> for T
where U: Into<T>,

§

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

§

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,