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