pub struct LegacyParameterBuilder<'a, 's> { /* private fields */ }Expand description
Builder for declaring parameters with a fluent API
Implementations§
Source§impl<'a, 's> LegacyParameterBuilder<'a, 's>
impl<'a, 's> LegacyParameterBuilder<'a, 's>
Sourcepub fn new(
server: &'a mut ParameterServer<'s>,
name: &str,
value: ParameterValue,
) -> Option<Self>
pub fn new( server: &'a mut ParameterServer<'s>, name: &str, value: ParameterValue, ) -> Option<Self>
Create a new parameter builder
Sourcepub fn description(self, desc: &str) -> Self
pub fn description(self, desc: &str) -> Self
Set the parameter description
Sourcepub fn integer_range(self, min: i64, max: i64, step: i64) -> Self
pub fn integer_range(self, min: i64, max: i64, step: i64) -> Self
Set integer range constraints
Sourcepub fn float_range(self, min: f64, max: f64, step: f64) -> Self
pub fn float_range(self, min: f64, max: f64, step: f64) -> Self
Set float range constraints
Auto Trait Implementations§
impl<'a, 's> !UnwindSafe for LegacyParameterBuilder<'a, 's>
impl<'a, 's> Freeze for LegacyParameterBuilder<'a, 's>
impl<'a, 's> RefUnwindSafe for LegacyParameterBuilder<'a, 's>
impl<'a, 's> Send for LegacyParameterBuilder<'a, 's>
impl<'a, 's> Sync for LegacyParameterBuilder<'a, 's>
impl<'a, 's> Unpin for LegacyParameterBuilder<'a, 's>
impl<'a, 's> UnsafeUnpin for LegacyParameterBuilder<'a, 's>
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