pub struct ControlSignal { /* private fields */ }Implementations§
Source§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§
Source§impl Clone for ControlSignal
impl Clone for ControlSignal
Source§fn clone(&self) -> ControlSignal
fn clone(&self) -> ControlSignal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ControlSignal
impl Debug for ControlSignal
Source§impl PartialEq for ControlSignal
impl PartialEq for ControlSignal
Source§fn eq(&self, other: &ControlSignal) -> bool
fn eq(&self, other: &ControlSignal) -> bool
Tests for
self and other values to be equal, and is used by ==.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