add_display::View done

This commit is contained in:
Aleksander
2025-12-19 19:01:36 +01:00
parent 9aea733452
commit e81c3945e6
11 changed files with 317 additions and 58 deletions

View File

@@ -26,13 +26,20 @@ impl Translation {
}
}
pub fn from_raw_text_rc(text: Rc<str>) -> Self {
pub const fn from_raw_text_rc(text: Rc<str>) -> Self {
Self {
text,
translated: false,
}
}
pub fn from_raw_text_string(text: String) -> Self {
Self {
text: text.into(),
translated: false,
}
}
pub fn from_raw_text(text: &str) -> Self {
Self {
text: Rc::from(text),