Trait map_in_place::MapSliceInPlace [] [src]

pub trait MapSliceInPlace<A> {
    fn map<B, F: FnMut(A) -> B>(self, f: F) -> Box<[B]>;
    fn map_in_place<B, F: FnMut(A) -> B>(self, f: F) -> Box<[B]>;
}

Required Methods

Map the elements as in an iterator, but reuse the allocation if the types have identical size and alignment.

Map the elements as in an iterator, but reuse the allocation.

Panics:

If the old and new types doesn't have identical size and alignment.

Implementors