pub struct BoolParam {
pub info: ParamInfo,
/* private fields */
}Expand description
A boolean parameter.
Fields§
§info: ParamInfoImplementations§
Source§impl BoolParam
impl BoolParam
Sourcepub fn new(info: ParamInfo) -> Self
pub fn new(info: ParamInfo) -> Self
§Panics
Panics if info.default_plain isn’t exactly 0.0 or 1.0.
Bool params have no halfway value; the derive emits 0.0 /
1.0 only, so this fires only when a user constructs a
BoolParam from hand-rolled ParamInfo.
pub fn value(&self) -> bool
pub fn set_value(&self, v: bool)
pub fn id(&self) -> u32
Auto Trait Implementations§
impl !Freeze for BoolParam
impl RefUnwindSafe for BoolParam
impl Send for BoolParam
impl Sync for BoolParam
impl Unpin for BoolParam
impl UnsafeUnpin for BoolParam
impl UnwindSafe for BoolParam
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