[−][src]Struct langis::comp::Clamp
Clamps the values of S between Min and Max.
Trait Implementations
impl<S: Clone, Min: Clone, Max: Clone> Clone for Clamp<S, Min, Max>[src]
fn clone(&self) -> Clamp<S, Min, Max>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<S, Min, Max> Signal for Clamp<S, Min, Max> where
S: Signal,
Min: Signal<Type = S::Type>,
Max: Signal<Type = S::Type>,
S::Type: Ord, [src]
S: Signal,
Min: Signal<Type = S::Type>,
Max: Signal<Type = S::Type>,
S::Type: Ord,
type Type = S::Type
The type of the signal.
fn next(&mut self) -> Self::Type[src]
fn add<S>(self, other: S) -> Add<Self, S> where
Self: Sized,
S: Signal,
Self::Type: Add<S::Type>, [src]
Self: Sized,
S: Signal,
Self::Type: Add<S::Type>,
fn sub<S>(self, other: S) -> Sub<Self, S> where
Self: Sized,
S: Signal,
Self::Type: Sub<S::Type>, [src]
Self: Sized,
S: Signal,
Self::Type: Sub<S::Type>,
fn mul<S>(self, other: S) -> Mul<Self, S> where
Self: Sized,
S: Signal,
Self::Type: Mul<S::Type>, [src]
Self: Sized,
S: Signal,
Self::Type: Mul<S::Type>,
fn div<S>(self, other: S) -> Div<Self, S> where
Self: Sized,
S: Signal,
Self::Type: Div<S::Type>, [src]
Self: Sized,
S: Signal,
Self::Type: Div<S::Type>,
fn rem<S>(self, other: S) -> Rem<Self, S> where
Self: Sized,
S: Signal,
Self::Type: Rem<S::Type>, [src]
Self: Sized,
S: Signal,
Self::Type: Rem<S::Type>,
fn bitand<S>(self, other: S) -> BitAnd<Self, S> where
Self: Sized,
S: Signal,
Self::Type: BitAnd<S::Type>, [src]
Self: Sized,
S: Signal,
Self::Type: BitAnd<S::Type>,
fn bitor<S>(self, other: S) -> BitOr<Self, S> where
Self: Sized,
S: Signal,
Self::Type: BitOr<S::Type>, [src]
Self: Sized,
S: Signal,
Self::Type: BitOr<S::Type>,
fn bitxor<S>(self, other: S) -> BitXor<Self, S> where
Self: Sized,
S: Signal,
Self::Type: BitXor<S::Type>, [src]
Self: Sized,
S: Signal,
Self::Type: BitXor<S::Type>,
fn shr<S>(self, other: S) -> Shr<Self, S> where
Self: Sized,
S: Signal,
Self::Type: Shr<S::Type>, [src]
Self: Sized,
S: Signal,
Self::Type: Shr<S::Type>,
fn shl<S>(self, other: S) -> Shl<Self, S> where
Self: Sized,
S: Signal,
Self::Type: Shl<S::Type>, [src]
Self: Sized,
S: Signal,
Self::Type: Shl<S::Type>,
fn neg(self) -> Neg<Self> where
Self: Sized,
Self::Type: Neg, [src]
Self: Sized,
Self::Type: Neg,
fn min<S>(self, other: S) -> Min<Self, S> where
Self: Sized,
S: Signal<Type = Self::Type>,
Self::Type: Ord, [src]
Self: Sized,
S: Signal<Type = Self::Type>,
Self::Type: Ord,
fn max<S>(self, other: S) -> Max<Self, S> where
Self: Sized,
S: Signal<Type = Self::Type>,
Self::Type: Ord, [src]
Self: Sized,
S: Signal<Type = Self::Type>,
Self::Type: Ord,
fn clamp<Min, Max>(self, min: Min, max: Max) -> Clamp<Self, Min, Max> where
Self: Sized,
Min: Signal<Type = Self::Type>,
Max: Signal<Type = Self::Type>,
Self::Type: Ord, [src]
Self: Sized,
Min: Signal<Type = Self::Type>,
Max: Signal<Type = Self::Type>,
Self::Type: Ord,
fn map<F, T>(self, map: F) -> Map<Self, F> where
Self: Sized,
F: FnMut(Self::Type) -> T, [src]
Self: Sized,
F: FnMut(Self::Type) -> T,
fn filter<F>(self, predicate: F) -> Filter<Self, F> where
Self: Sized,
F: FnMut(&Self::Type) -> bool, [src]
Self: Sized,
F: FnMut(&Self::Type) -> bool,
fn filter_map<F, T>(self, predicate: F) -> FilterMap<Self, F> where
Self: Sized,
F: FnMut(Self::Type) -> Option<T>, [src]
Self: Sized,
F: FnMut(Self::Type) -> Option<T>,
fn cloned<'a, T>(self) -> Cloned<Self> where
Self: Sized + Signal<Type = &'a T>,
T: 'a + Clone, [src]
Self: Sized + Signal<Type = &'a T>,
T: 'a + Clone,
fn inspect<F>(self, inspect: F) -> Inspect<Self, F> where
Self: Sized,
F: FnMut(&Self::Type), [src]
Self: Sized,
F: FnMut(&Self::Type),
fn zip<S>(self, other: S) -> Zip<Self, S> where
Self: Sized,
S: Signal, [src]
Self: Sized,
S: Signal,
fn into<T>(self) -> Into<Self, T> where
Self: Sized,
Self::Type: Into<T>, [src]
Self: Sized,
Self::Type: Into<T>,
fn skip(self, n: usize) -> Skip<Self> where
Self: Sized, [src]
Self: Sized,
fn into_iter(self) -> IntoIter<Self>ⓘ where
Self: Sized, [src]
Self: Sized,
Auto Trait Implementations
impl<S, Min, Max> Send for Clamp<S, Min, Max> where
Max: Send,
Min: Send,
S: Send,
Max: Send,
Min: Send,
S: Send,
impl<S, Min, Max> Sync for Clamp<S, Min, Max> where
Max: Sync,
Min: Sync,
S: Sync,
Max: Sync,
Min: Sync,
S: Sync,
impl<S, Min, Max> Unpin for Clamp<S, Min, Max> where
Max: Unpin,
Min: Unpin,
S: Unpin,
Max: Unpin,
Min: Unpin,
S: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,