corlib

Crates.iocorlib
lib.rscorlib
version
sourcesrc
created_at2023-07-20 04:24:39.382998+00
updated_at2025-03-05 02:29:06.125937+00
descriptionA various ideas library
homepagehttps://coruscateor.com/projects/corlib
repositoryhttps://github.com/coruscateor/corlib
max_upload_size
id920944
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Paul Saunders (coruscateor)

documentation

README

Corlib

Crates.io License Downloads Docs Twitch Status

X | Twitch | Youtube | Mastodon | GitHub | GitHub Sponsors

Corlib is a various ideas library.

Library Contents:

NonOption

Like an option but not optional.

Immut

Forces external immutability.

WorkInProgressResult And IdedWorkInProgressResult

Containers used for communicating the results and statuses of ongoing operations.

GapFillingCounter

A counter that can recycle "gaps".

Getter Setter Caller Macros

Macros for implementing getters, setters and calling methods on regular structs and RefCells.

Get Some

Convert Options into certainty.

Sub-Modules:

Cell

Macros, functions and the RefCellStore which help make working with RefCells easier.

Collections

Collections and collection related objects.

Convert

Convert stuff into &dyn Any and &mut dyn Any.

Drop Panic

A fun way to crash your programme.

Events

Events and event related objects.

Loosely inspred by .NET events.

Has One

Get the value of one for each numeric type.

Inc Dec

Miss the ++ and -- operators?

This module can help sort you out.

Rc

Reference counting related helper structs and traits.

Text

Look at SendableText and AsStr.

Upgrading

Functions that help you deal with upgrading reference counted objects.

Value

For when you want to move values around.

Compiler:

Build with the latest stable compiler.

Todo:

  • Add more documentation
  • Add code examples
  • Add more tests
  • Clean-up the code
  • Solidify the API for 1.0

Coding Style

This project uses a coding style the emphasises the use of white space over keeping the line and column counts as low as possible.

So this:

fn foo()
{

    bar();

}

Not this:

fn foo()
{
    bar();
}


License

Licensed under either of:

at your discretion


Contributing

Please clone the repository and create an issue explaining what feature or features you'd like to add or bug or bugs you'd like to fix and perhaps how you intend to implement these additions or fixes. Try to include details though it doesn't need to be exhaustive and we'll take it from there (dependant on availability).


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 30

cargo fmt