stanza 0.3.0

An abstract table model with customisable text formatting and renderers.
Documentation
1
2
3
4
5
6
7
8
9
use crate::lazy::Lazy;

#[test]
fn lifecycle() {
    let mut lazy = Lazy::new(|| 42);
    assert_eq!(None, lazy.try_get());
    assert_eq!(42, *lazy.get());
    assert_eq!(Some(&42), lazy.try_get());
}