#! @file closeable.sakura #! @author John Christman (sorakatadzuma@gmail.com) #! @copyright Malunal Studios, LLC. #! @license MIT #! #! Contains the closeable trait, which the compiler gives every type whose #! values are closed where they go away. module core; #! A type whose values are closed where they go away: one that is `owning`, or #! one holding a value that is, in a field or an element. #! #! Generic code asks `if const T is closeable` where what it does only matters #! for values that close, such as emptying the memory a value was moved out of #! so that it is not closed twice, which plain data has no need of. #! #! The compiler decides what is closeable, so no type can implement it. pub trait closeable {}