Initial Commit
This commit is contained in:
706 files changed
+135430
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#! @file extendable.sakura
|
||||
#! @author John Christman (sorakatadzuma@gmail.com)
|
||||
#! @copyright Malunal Studios, LLC.
|
||||
#! @license MIT
|
||||
#!
|
||||
#! Contains the extendable trait, which a container implements to have values
|
||||
#! appended to it, as an iterator's `into` appends each element it gives.
|
||||
|
||||
module core;
|
||||
|
||||
|
||||
#! A container values are appended to one at a time, as a `vector` takes its
|
||||
#! elements and a `string` its text.
|
||||
#! @tparam T The type of what is appended.
|
||||
pub trait extendable<T> {
|
||||
#! Appends a value, after those the container holds.
|
||||
#! @param this The container.
|
||||
#! @param value The value, which the container then owns.
|
||||
def append(&mut this, value: T): void;
|
||||
}
|
||||
Reference in new issue
Block a user