logos.lang.drop
Module lang · package logos-lang
Traits
traitDrop
trait Drop
Types with custom cleanup logic run automatically when a value goes out of scope.
Implemented by: Ref RefMut Buffer PrimVec Weak Rc VecIntoIter Vec String Weak Arc Allocator OView Mutex RwLock ContainerRef HashMap IoRing ReadDir DropGuard Box LineReader
Functions
fndrop
fn drop(value: T) -> void
Takes ownership of value and drops it immediately (mirrors core::mem::drop).
The by-value parameter is dropped when this function returns, so callers can
force an early drop of an owned value (drop(x);) before its lexical scope
would otherwise end. Generic over all T; for a non-droppable T this is a
no-op move.