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 Arc;
let static_str = "foo";
let arc_str: = "bar".into;
let owned_str: String = "baz".into;
uses_oco;
uses_oco;
uses_oco;