[−][src]Struct mp4parse_capi::CheckedInteger
A zero-overhead wrapper around integer types for the sake of always requiring checked arithmetic
Trait Implementations
impl<T, U: Into<T>> Add<U> for CheckedInteger<T> where
T: CheckedAdd,
[src]
T: CheckedAdd,
type Output = Option<Self>
The resulting type after applying the +
operator.
pub fn add(self, other: U) -> Self::Output
[src]
impl<T: Clone> Clone for CheckedInteger<T>
[src]
pub fn clone(&self) -> CheckedInteger<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for CheckedInteger<T>
[src]
impl<T: Debug> Debug for CheckedInteger<T>
[src]
impl<T: Default> Default for CheckedInteger<T>
[src]
pub fn default() -> CheckedInteger<T>
[src]
impl<T: Eq> Eq for CheckedInteger<T>
[src]
impl<T> From<T> for CheckedInteger<T>
[src]
impl<T: Ord> Ord for CheckedInteger<T>
[src]
pub fn cmp(&self, other: &CheckedInteger<T>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T: PartialEq> PartialEq<CheckedInteger<T>> for CheckedInteger<T>
[src]
pub fn eq(&self, other: &CheckedInteger<T>) -> bool
[src]
pub fn ne(&self, other: &CheckedInteger<T>) -> bool
[src]
impl<T: PartialEq> PartialEq<T> for CheckedInteger<T>
[src]
impl<T: PartialOrd> PartialOrd<CheckedInteger<T>> for CheckedInteger<T>
[src]
pub fn partial_cmp(&self, other: &CheckedInteger<T>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &CheckedInteger<T>) -> bool
[src]
pub fn le(&self, other: &CheckedInteger<T>) -> bool
[src]
pub fn gt(&self, other: &CheckedInteger<T>) -> bool
[src]
pub fn ge(&self, other: &CheckedInteger<T>) -> bool
[src]
impl<T> StructuralEq for CheckedInteger<T>
[src]
impl<T> StructuralPartialEq for CheckedInteger<T>
[src]
impl Sub<CheckedInteger<u64>> for CheckedInteger<u64>
[src]
Implement subtraction of checked u64
s returning i64
type Output = Option<CheckedInteger<i64>>
The resulting type after applying the -
operator.
pub fn sub(self, other: Self) -> Self::Output
[src]
impl<T, U: Into<T>> Sub<U> for CheckedInteger<T> where
T: CheckedSub,
[src]
T: CheckedSub,
Auto Trait Implementations
impl<T> RefUnwindSafe for CheckedInteger<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for CheckedInteger<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for CheckedInteger<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for CheckedInteger<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for CheckedInteger<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[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.
pub 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>,