nothing beter to do, added docs for string type

This commit is contained in:
Erin 2022-08-06 00:21:47 +02:00 committed by ondra05
parent 3496fec48e
commit bc445db1c9

View file

@ -1,5 +1,8 @@
use std::{fmt::Display, ops::Deref, rc::Rc};
/// A Wisp string type which can hold two variants:
/// - Borrowed (usually a reference to source code or built-in literal)
/// - Shared (Ref-counted pointer to [`str`])
#[derive(Debug, Clone)]
pub enum Str<'a> {
Borrowed(&'a str),