W3cubDocs

/Rust

Function std::mem::forget_unsized

pub fn forget_unsized<T>(t: T) where    T: ?Sized, 
🔬 This is a nightly-only experimental API. (forget_unsized)

Like forget, but also accepts unsized values.

This function is just a shim intended to be removed when the unsized_locals feature gets stabilized.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/mem/fn.forget_unsized.html