#[repr(i32)]pub enum PitchChoiceType {
MembranePosition = 0,
SubpartChoice = 1,
Keyboard = 2,
StoppingFret = 3,
StoppingAgainstBody = 4,
StoppingHole = 5,
StoppingHoleKey = 6,
Slide = 7,
HarmonicSeries = 8,
ValveRoutesAir = 9,
BpInBell = 10,
FootPedals = 11,
}Variants§
MembranePosition = 0
SubpartChoice = 1
Keyboard = 2
StoppingFret = 3
StoppingAgainstBody = 4
StoppingHole = 5
StoppingHoleKey = 6
Slide = 7
HarmonicSeries = 8
ValveRoutesAir = 9
BpInBell = 10
FootPedals = 11
Implementations§
Source§impl PitchChoiceType
impl PitchChoiceType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for PitchChoiceType
impl Clone for PitchChoiceType
Source§fn clone(&self) -> PitchChoiceType
fn clone(&self) -> PitchChoiceType
Returns a duplicate 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 PitchChoiceType
impl Debug for PitchChoiceType
Source§impl Default for PitchChoiceType
impl Default for PitchChoiceType
Source§fn default() -> PitchChoiceType
fn default() -> PitchChoiceType
Returns the “default value” for a type. Read more
Source§impl From<PitchChoiceType> for i32
impl From<PitchChoiceType> for i32
Source§fn from(value: PitchChoiceType) -> i32
fn from(value: PitchChoiceType) -> i32
Converts to this type from the input type.
Source§impl Hash for PitchChoiceType
impl Hash for PitchChoiceType
Source§impl Ord for PitchChoiceType
impl Ord for PitchChoiceType
Source§fn cmp(&self, other: &PitchChoiceType) -> Ordering
fn cmp(&self, other: &PitchChoiceType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PitchChoiceType
impl PartialEq for PitchChoiceType
Source§impl PartialOrd for PitchChoiceType
impl PartialOrd for PitchChoiceType
Source§impl Serialize for PitchChoiceType
impl Serialize for PitchChoiceType
Source§impl TryFrom<i32> for PitchChoiceType
impl TryFrom<i32> for PitchChoiceType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<PitchChoiceType, UnknownEnumValue>
fn try_from(value: i32) -> Result<PitchChoiceType, UnknownEnumValue>
Performs the conversion.
impl Copy for PitchChoiceType
impl Eq for PitchChoiceType
impl StructuralPartialEq for PitchChoiceType
Auto Trait Implementations§
impl Freeze for PitchChoiceType
impl RefUnwindSafe for PitchChoiceType
impl Send for PitchChoiceType
impl Sync for PitchChoiceType
impl Unpin for PitchChoiceType
impl UnsafeUnpin for PitchChoiceType
impl UnwindSafe for PitchChoiceType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more