Struct ControlSignal
pub struct ControlSignal { /* private fields */ }Implementations§
§impl ControlSignal
impl ControlSignal
pub fn new(value: f64) -> Result<ControlSignal, ControlSignalError>
pub fn value(&self) -> f64
pub fn clamp( self, min: f64, max: f64, ) -> Result<ControlSignal, ControlSignalError>
pub fn scale(self, factor: f64) -> Result<ControlSignal, ControlSignalError>
Trait Implementations§
§impl Clone for ControlSignal
impl Clone for ControlSignal
§fn clone(&self) -> ControlSignal
fn clone(&self) -> ControlSignal
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 more§impl Debug for ControlSignal
impl Debug for ControlSignal
§impl PartialEq for ControlSignal
impl PartialEq for ControlSignal
impl Copy for ControlSignal
impl StructuralPartialEq for ControlSignal
Auto Trait Implementations§
impl Freeze for ControlSignal
impl RefUnwindSafe for ControlSignal
impl Send for ControlSignal
impl Sync for ControlSignal
impl Unpin for ControlSignal
impl UnsafeUnpin for ControlSignal
impl UnwindSafe for ControlSignal
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