Function ::std::mem::drop

Overview
fn drop(value) -> Tuple

Explicitly drop the given value, freeing up any memory associated with it.

Normally values are dropped as they go out of scope, but with this method it can be explicitly controlled instead.

Examples

Basic usage:

let v = [1, 2, 3];
drop(v);