pub struct UIText { /* private fields */ }
Implementations
sourceimpl UIText
impl UIText
The UIText is a wrapper around the get_entry() function that recursively searches directories for a file with the given language and key.
Example
use cst::UIText;
let expect = "The quick brown fox jumps over the lazy dog.";
let ui_text = UIText::new("example"); // uitext/example.dir
let entry = ui_text.get_text(101, 1); // Entry 1 of _101_[name].cst
assert_eq!(entry.unwrap(), expect);
Auto Trait Implementations
impl RefUnwindSafe for UIText
impl Send for UIText
impl Sync for UIText
impl Unpin for UIText
impl UnwindSafe for UIText
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more