pub struct ClampWrap<Q> {
pub x0: Q,
pub clamp: Wrap,
}Expand description
Maps wraps to saturation
Clamps output to the value range on wraps and only un-clamps on (one corresponding) un-wrap.
Fields§
§x0: QLast input value
clamp: WrapClamp indicator
Trait Implementations§
Source§impl<'de, Q> Deserialize<'de> for ClampWrap<Q>where
Q: Deserialize<'de>,
impl<'de, Q> Deserialize<'de> for ClampWrap<Q>where
Q: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Q> Process<Q> for ClampWrap<Q>
impl<Q> Process<Q> for ClampWrap<Q>
Auto Trait Implementations§
impl<Q> Freeze for ClampWrap<Q>where
Q: Freeze,
impl<Q> RefUnwindSafe for ClampWrap<Q>where
Q: RefUnwindSafe,
impl<Q> Send for ClampWrap<Q>where
Q: Send,
impl<Q> Sync for ClampWrap<Q>where
Q: Sync,
impl<Q> Unpin for ClampWrap<Q>where
Q: Unpin,
impl<Q> UnwindSafe for ClampWrap<Q>where
Q: UnwindSafe,
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