add as_gstring method

This commit is contained in:
yggverse 2025-01-19 03:52:46 +02:00
parent 48c7676788
commit e96771b926

View file

@ -62,6 +62,13 @@ impl Text {
},
);
}
// Getters
/// Get `Self` as `glib::GString`
pub fn as_gstring(&self) -> &GString {
&self.0
}
}
impl std::fmt::Display for Text {