This module contains the Oco
(Owned Clones Once) smart pointer,
which is used to store immutable references to values.
This is useful for storing, for example, strings.
Imagine this as an alternative to [Cow
] with an additional, reference-counted
branch.
use Oco;
use Rc;
let static_str = "foo";
let rc_str: = "bar".into;
let owned_str: String = "baz".into;
uses_oco;
uses_oco;
uses_oco;