1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use crate::ImportantFunctions;

use super::*;

impl ImportantFunctions for String {
    type InputType = std::string::String;

    type ReturnType = std::string::String;

    fn new(data: Self::InputType) -> Self {
        Self(data)
    }

    fn get_value(&self) -> Self::ReturnType {
        self.0.clone()
    }
}
impl ImportantFunctions for Identifier {
    type InputType = std::string::String;
    type ReturnType = std::string::String;
    fn new(data: Self::InputType) -> Self {
        Self(String::new(data))
    }
    fn get_value(&self) -> Self::ReturnType {
        self.0.get_value()
    }
}