#! @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 { #! 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; }