[][src]Struct mp4parse_capi::CheckedInteger

#[repr(transparent)]pub struct CheckedInteger<T>(pub T);

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]

type Output = Option<Self>

The resulting type after applying the + operator.

impl<T: Clone> Clone for CheckedInteger<T>[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]

impl<T: Eq> Eq for CheckedInteger<T>[src]

impl<T> From<T> for CheckedInteger<T>[src]

impl<T: Ord> Ord for CheckedInteger<T>[src]

impl<T: PartialEq> PartialEq<CheckedInteger<T>> for CheckedInteger<T>[src]

impl<T: PartialEq> PartialEq<T> for CheckedInteger<T>[src]

impl<T: PartialOrd> PartialOrd<CheckedInteger<T>> for CheckedInteger<T>[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 u64s returning i64

type Output = Option<CheckedInteger<i64>>

The resulting type after applying the - operator.

impl<T, U: Into<T>> Sub<U> for CheckedInteger<T> where
    T: CheckedSub
[src]

type Output = Option<Self>

The resulting type after applying the - operator.

Auto Trait Implementations

impl<T> RefUnwindSafe for CheckedInteger<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for CheckedInteger<T> where
    T: Send
[src]

impl<T> Sync for CheckedInteger<T> where
    T: Sync
[src]

impl<T> Unpin for CheckedInteger<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for CheckedInteger<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.