[][src]Struct mybound::MyBound

pub struct MyBound<T>(_);

Methods

impl<T> MyBound<T>[src]

pub fn is_included(&self) -> bool[src]

pub fn is_excluded(&self) -> bool[src]

pub fn is_unbounded(&self) -> bool[src]

pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> MyBound<U>[src]

pub fn as_ref<U: ?Sized>(&self) -> MyBound<&U> where
    T: AsRef<U>, 
[src]

pub fn as_mut<U: ?Sized>(&mut self) -> MyBound<&mut U> where
    T: AsMut<U>, 
[src]

pub fn as_pin_ref<'a, U: ?Sized>(
    self: Pin<&'a MyBound<T>>
) -> MyBound<Pin<&'a U>> where
    T: AsRef<U>, 
[src]

pub fn as_pin_mut<'a, U: ?Sized>(
    self: Pin<&'a mut MyBound<T>>
) -> MyBound<Pin<&'a mut U>> where
    T: AsMut<U>, 
[src]

pub fn unwrap(self) -> T[src]

pub fn unwrap_or(self, def: T) -> T[src]

pub fn unwrap_or_else<F>(self, f: F) -> T where
    F: FnOnce() -> T, 
[src]

pub fn expect(self, msg: &str) -> T[src]

impl<'a, T> MyBound<&'a T>[src]

pub fn cloned(self) -> MyBound<T> where
    T: Clone
[src]

pub fn copied(self) -> MyBound<T> where
    T: Copy
[src]

impl<'a, T> MyBound<&'a mut T>[src]

pub fn cloned(self) -> MyBound<T> where
    T: Clone
[src]

pub fn copied(self) -> MyBound<T> where
    T: Copy
[src]

Trait Implementations

impl<T> Into<Bound<T>> for MyBound<T>[src]

impl<T> From<Bound<T>> for MyBound<T>[src]

Auto Trait Implementations

impl<T> Sync for MyBound<T> where
    T: Sync

impl<T> Unpin for MyBound<T> where
    T: Unpin

impl<T> Send for MyBound<T> where
    T: Send

impl<T> UnwindSafe for MyBound<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for MyBound<T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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.

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

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

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