1crate::ix!();
2
3#[derive(Default,Hash,Debug,Clone,PartialEq,Eq,PartialOrd,Ord,Serialize,Deserialize)]
4pub struct OtherLanguage(String);
5
6impl OtherLanguage {
7
8 pub fn new(x: impl ToString) -> Self {
9 Self(x.to_string())
10 }
11}
12
13impl ItemFeature for OtherLanguage {
14
15 fn text(&self) -> Cow<'_,str> {
16 Cow::Borrowed(&self.0)
17 }
18}
19
20impl RandConstruct for OtherLanguage {
21
22 fn random() -> Self {
23 Self("UnknownLanguage".to_string())
24 }
25
26 fn random_with_rng<R: rand::Rng + ?Sized>(_: &mut R) -> Self {
27 Self("UnknownLanguage".to_string())
28 }
29
30 fn uniform() -> Self {
31 Self::random()
32 }
33}
34