nothing beter to do, added docs for string type
This commit is contained in:
parent
3496fec48e
commit
bc445db1c9
|
@ -1,5 +1,8 @@
|
||||||
use std::{fmt::Display, ops::Deref, rc::Rc};
|
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)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum Str<'a> {
|
pub enum Str<'a> {
|
||||||
Borrowed(&'a str),
|
Borrowed(&'a str),
|
||||||
|
|
Loading…
Reference in a new issue