Type Definition rental::RentBox
[−]
[src]
type RentBox<'rental, T: 'rental, B: 'rental> = RentRef<'rental, Box<T>, B>;
A predefined type that rents references from a Box<T>
.
Examples
let bx = Box::new(2); let rent = rental::RentBox::new(bx, |b| &*b); assert_eq!(*rent, 2);