libutils-cage 0.1.0

A thread-safe static mutable wrapper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//^
//^ HEAD
//^

//> HEAD -> SUPER
use super::Cage;


//^
//^ FROM
//^

//> FROM -> FUNCTION
const impl<Type, Generator: [const] FnOnce() -> Type> From<Generator> for Cage<Type> {
    fn from(value: Generator) -> Self {return Self::new(value())}
}