Struct borrow_with_ref_obj::BoxedReference[][src]

pub struct BoxedReference<'a, T: ?Sized> {
    pub boxed: Box<Deref<Target = T> + 'a>,
}

Wrapper for Box<dyn Deref<Target=T> that dereferences directly to T.

Removes a layer of Deref.

The implementation of BoxedBorrowWithRefObj uses this type; you should not need to use it yourself.

Fields

Trait Implementations

impl<'a, T: ?Sized, Target: Deref<Target = T> + 'a> From<Box<Target>> for BoxedReference<'a, T>
[src]

Performs the conversion.

impl<'a, T: ?Sized> Into<Box<Deref<Target = T> + 'a>> for BoxedReference<'a, T>
[src]

Performs the conversion.

impl<'a, T: ?Sized> Deref for BoxedReference<'a, T>
[src]

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

impl<'a, T> !Send for BoxedReference<'a, T>

impl<'a, T> !Sync for BoxedReference<'a, T>