#[repr(u32)]pub enum ControlType {
None = 0,
Bool = 1,
Byte = 2,
Uint16 = 3,
Uint32 = 4,
Int32 = 5,
Int64 = 6,
Float = 7,
String = 8,
Rectangle = 9,
Size = 10,
Point = 11,
}
Variants§
None = 0
Bool = 1
Byte = 2
Uint16 = 3
Uint32 = 4
Int32 = 5
Int64 = 6
Float = 7
String = 8
Rectangle = 9
Size = 10
Point = 11
Trait Implementations§
Source§impl Clone for ControlType
impl Clone for ControlType
Source§fn clone(&self) -> ControlType
fn clone(&self) -> ControlType
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 ControlType
impl Debug for ControlType
Source§impl From<&ControlValue> for ControlType
impl From<&ControlValue> for ControlType
Source§fn from(control_value: &ControlValue) -> Self
fn from(control_value: &ControlValue) -> Self
Converts to this type from the input type.
Source§impl From<ControlType> for u32
impl From<ControlType> for u32
Source§fn from(control_type: ControlType) -> Self
fn from(control_type: ControlType) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ControlValue> for ControlType
impl TryFrom<ControlValue> for ControlType
Source§type Error = ControlTypeError
type Error = ControlTypeError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ControlType
impl RefUnwindSafe for ControlType
impl Send for ControlType
impl Sync for ControlType
impl Unpin for ControlType
impl UnwindSafe for ControlType
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