#[repr(i32)]pub enum TuningType {
Pegs = 0,
AdjustableBridges = 1,
Crooks = 2,
Tightening = 3,
Levers = 4,
}Variants§
Implementations§
Source§impl TuningType
impl TuningType
Source§impl TuningType
impl TuningType
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 TuningType
impl Clone for TuningType
Source§fn clone(&self) -> TuningType
fn clone(&self) -> TuningType
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 TuningType
impl Debug for TuningType
Source§impl Default for TuningType
impl Default for TuningType
Source§fn default() -> TuningType
fn default() -> TuningType
Returns the “default value” for a type. Read more
Source§impl From<TuningType> for i32
impl From<TuningType> for i32
Source§fn from(value: TuningType) -> i32
fn from(value: TuningType) -> i32
Converts to this type from the input type.
Source§impl Hash for TuningType
impl Hash for TuningType
Source§impl Ord for TuningType
impl Ord for TuningType
Source§fn cmp(&self, other: &TuningType) -> Ordering
fn cmp(&self, other: &TuningType) -> 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 TuningType
impl PartialEq for TuningType
Source§impl PartialOrd for TuningType
impl PartialOrd for TuningType
Source§impl Serialize for TuningType
impl Serialize for TuningType
Source§impl TryFrom<i32> for TuningType
impl TryFrom<i32> for TuningType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<TuningType, UnknownEnumValue>
fn try_from(value: i32) -> Result<TuningType, UnknownEnumValue>
Performs the conversion.
impl Copy for TuningType
impl Eq for TuningType
impl StructuralPartialEq for TuningType
Auto Trait Implementations§
impl Freeze for TuningType
impl RefUnwindSafe for TuningType
impl Send for TuningType
impl Sync for TuningType
impl Unpin for TuningType
impl UnsafeUnpin for TuningType
impl UnwindSafe for TuningType
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