std.drop.drop
Show source codeHide source code
fn pub drop[T](_value: T) {
# _value dropped implicitly
}
fn pub static drop[T](_value: T)
Drops the given value.
This method drops the value simply by taking ownership of it, and dropping it before returning. This allows one to drop a value before reaching the end of a scope.