[−][src]Struct dasp::sample::types::I20
Implementations
impl I20
[src]
pub fn new(val: i32) -> Option<I20>
[src]
Construct a new sample if the given value is within range.
Returns None
if val
is out of range.
pub fn new_unchecked(s: i32) -> I20
[src]
Constructs a new sample without checking for overflowing.
This should only be used if the user can guarantee the sample will be within range and they require the extra performance.
If this function is used, the sample crate can't guarantee that the returned sample or any interacting samples will remain within their MIN and MAX bounds.
pub fn inner(self) -> i32
[src]
Return the internal value used to represent the sample type.
Trait Implementations
impl Add<I20> for I20
[src]
type Output = I20
The resulting type after applying the +
operator.
fn add(self, other: I20) -> I20
[src]
impl BitAnd<I20> for I20
[src]
type Output = I20
The resulting type after applying the &
operator.
fn bitand(self, other: I20) -> I20
[src]
impl BitOr<I20> for I20
[src]
type Output = I20
The resulting type after applying the |
operator.
fn bitor(self, other: I20) -> I20
[src]
impl BitXor<I20> for I20
[src]
type Output = I20
The resulting type after applying the ^
operator.
fn bitxor(self, other: I20) -> I20
[src]
impl Clone for I20
[src]
impl Copy for I20
[src]
impl Debug for I20
[src]
impl Default for I20
[src]
impl Div<I20> for I20
[src]
type Output = I20
The resulting type after applying the /
operator.
fn div(self, other: I20) -> I20
[src]
impl Eq for I20
[src]
impl From<I11> for I20
[src]
impl From<I20> for I24
[src]
impl From<I20> for I48
[src]
impl From<U11> for I20
[src]
impl From<i16> for I20
[src]
impl From<i32> for I20
[src]
impl From<i8> for I20
[src]
impl From<u16> for I20
[src]
impl From<u8> for I20
[src]
impl Mul<I20> for I20
[src]
type Output = I20
The resulting type after applying the *
operator.
fn mul(self, other: I20) -> I20
[src]
impl Not for I20
[src]
impl Ord for I20
[src]
fn cmp(&self, other: &I20) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<I20> for I20
[src]
impl PartialOrd<I20> for I20
[src]
fn partial_cmp(&self, other: &I20) -> Option<Ordering>
[src]
fn lt(&self, other: &I20) -> bool
[src]
fn le(&self, other: &I20) -> bool
[src]
fn gt(&self, other: &I20) -> bool
[src]
fn ge(&self, other: &I20) -> bool
[src]
impl Rem<I20> for I20
[src]
type Output = I20
The resulting type after applying the %
operator.
fn rem(self, other: I20) -> I20
[src]
impl Shl<I20> for I20
[src]
type Output = I20
The resulting type after applying the <<
operator.
fn shl(self, other: I20) -> I20
[src]
impl Shr<I20> for I20
[src]
type Output = I20
The resulting type after applying the >>
operator.
fn shr(self, other: I20) -> I20
[src]
impl StructuralEq for I20
[src]
impl StructuralPartialEq for I20
[src]
impl Sub<I20> for I20
[src]
Auto Trait Implementations
impl RefUnwindSafe for I20
impl Send for I20
impl Sync for I20
impl Unpin for I20
impl UnwindSafe for I20
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<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
[src]
T: FromSample<S> + ToSample<S>,
impl<T> From<T> for T
[src]
impl<S> FromSample<S> for S
[src]
fn from_sample_(s: S) -> S
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
[src]
U: FromSample<T>,
fn to_sample_(self) -> U
[src]
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>,