[][src]Struct reffers::Bxm

pub struct Bxm<T: ?Sized>(_);

A simple wrapper around Box to avoid DerefMove. Like Bx, but also allows mutable access to the interior of the box.

Note that this will allow callers to use e g mem::swap and mem::replace to move the box's contents to other memory locations.

Methods

impl<T> Bxm<T>[src]

pub fn new(t: T) -> Bxm<T>[src]

Trait Implementations

impl<T: ?Sized> AReffic for Bxm<T>[src]

impl<T: ?Sized> From<Box<T>> for Bxm<T>[src]

impl<T: Eq + ?Sized> Eq for Bxm<T>[src]

impl<T: Ord + ?Sized> Ord for Bxm<T>[src]

impl<T: PartialEq + ?Sized> PartialEq<Bxm<T>> for Bxm<T>[src]

impl<T: PartialOrd + ?Sized> PartialOrd<Bxm<T>> for Bxm<T>[src]

impl<T: Debug + ?Sized> Debug for Bxm<T>[src]

impl<T: ?Sized> Deref for Bxm<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: ?Sized> DerefMut for Bxm<T>[src]

impl<T: Hash + ?Sized> Hash for Bxm<T>[src]

impl<T: ?Sized> StructuralPartialEq for Bxm<T>[src]

impl<T: ?Sized> StructuralEq for Bxm<T>[src]

impl<T: ?Sized> StableDeref for Bxm<T>[src]

Auto Trait Implementations

impl<T: ?Sized> Send for Bxm<T> where
    T: Send

impl<T: ?Sized> Sync for Bxm<T> where
    T: Sync

impl<T: ?Sized> Unpin for Bxm<T>

impl<T: ?Sized> UnwindSafe for Bxm<T> where
    T: UnwindSafe

impl<T: ?Sized> RefUnwindSafe for Bxm<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Repr for T[src]

type Store = T

impl<T> Repr for T[src]

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

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

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