Initial Commit

This commit is contained in:
SoraKatadzuma committed 2026-10-28 22:13:49 -05:00
commit 05756094ac
706 files changed
+135430

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#! @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 {}