Expand description
Small tools to work with rust reducing mutability and programming more functional way.
Mutability and sharing is bad.
Viric mutability is bad.
Mutability on large pieces of code is bad.
In Rust, we can have no viric, not shared mutability. Let’s reduce to small scopes…
For an introduction and context view, read…
A very basic example…
extern crate idata;
use idata::cont::IVec;
fn main() {
let v = vec![1, 2];
let v = v.ipush(3)
.ipush(4);
assert!(v == vec![1,2,3,4]);
}Modules§
Traits§
- IString
- Operations on inmutable vars over an string
Functions§
- consume_
char - Try getting a char from top of a Chars returning the (char, remaining_chars) if possible
- steal_
borrow - &mut propagates mutability to top This is bad