Crate corlib

source ·
Expand description

Corlib, a libaray implementing varous-ideas.

Modules

Macros

Structs

  • Contains a closure and a container reference parameter. The closure is called with the container parameter being passed to it when dropped. The container parameter would probably be referening to a containing object.
  • Contains a closure that is called when dropped.
  • Increments a number returning “gap” mumbers, numbers that are reported be no longer “be in use”, first.
  • A lazily constructed object that does not contain an initaising function pointer.
  • An Option that is not really optional (but is still kinda). Start by creating the object by calling invalid (probably as a field in a struct constructor) and setting a value by calling “Set” with a parameter as soon as possible. Attempting to use an invalid NonOption will cause a panic, so make absolutely sure you’ve set it with a value before calling “get_ref”, “get_mut” etc.
  • Contains a closure and a paramter. The closure is called with parameter being passed to it when dropped.
  • A Container for comparing and hashing weakly-reference counted values by reference.

Enums

Traits

Type Definitions