airlang 0.26.0

Air is a minimalist and universal programming language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::borrow::Borrow;

use derive_more::Deref;
use derive_more::DerefMut;
use derive_more::From;
use derive_more::Into;

#[derive(Clone, Default, PartialEq, Eq, Hash, From, Into, Deref, DerefMut)]
#[from(&str, String)]
pub struct Text(String);

impl Borrow<str> for Text {
    fn borrow(&self) -> &str {
        self
    }
}