pub enum BuiltinRepr {
SignedSlider {
storage_min: i64,
storage_max: i64,
suggested_min: i64,
suggested_max: i64,
},
UnsignedSlider {
storage_min: u64,
storage_max: u64,
suggested_min: u64,
suggested_max: u64,
},
FloatSlider {
storage_min: f64,
storage_max: f64,
suggested_min: f64,
suggested_max: f64,
},
SignedInteger {
min: i64,
max: i64,
},
UnsignedInteger {
min: u64,
max: u64,
},
Float {
min: f64,
max: f64,
},
Bool,
String {
multiline: bool,
},
}
Expand description
Convenience type to create builtin livemod reprs.
Variants§
SignedSlider
A signed integer with suggested bounds.
Maps to livemod:sint
UnsignedSlider
An unsigned integer with suggested bounds.
Maps to livemod:uint
FloatSlider
A floating-point number with suggested bounds
Maps to livemod:float
SignedInteger
A signed integer without suggested bounds.
Maps to livemod:sint
UnsignedInteger
An unsigned integer without suggested bounds
Maps to livemod:uint
Float
A floating-point number without suggested bounds
Maps to livemod:float
Bool
A boolean
Maps to livemod:bool
String
A strin
Maps to livemod:string
Trait Implementations§
Source§impl Clone for BuiltinRepr
impl Clone for BuiltinRepr
Source§fn clone(&self) -> BuiltinRepr
fn clone(&self) -> BuiltinRepr
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 BuiltinRepr
impl Debug for BuiltinRepr
Source§impl From<BuiltinRepr> for Namespaced<Repr>
impl From<BuiltinRepr> for Namespaced<Repr>
Source§fn from(b: BuiltinRepr) -> Namespaced<Repr>
fn from(b: BuiltinRepr) -> Namespaced<Repr>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuiltinRepr
impl RefUnwindSafe for BuiltinRepr
impl Send for BuiltinRepr
impl Sync for BuiltinRepr
impl Unpin for BuiltinRepr
impl UnwindSafe for BuiltinRepr
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