pub struct TextRef {
pub key: &'static str,
pub text: &'static str,
}Expand description
A reference to localized text.
key is a resource key ("endpoint.blog.list.name"); text is a literal
default used when the key is absent from every resource. Either may be empty.
Fields§
§key: &'static strResource key; empty for literal-only text.
text: &'static strLiteral fallback; empty when the key is the only source.
Implementations§
Trait Implementations§
impl Copy for TextRef
impl Eq for TextRef
impl StructuralPartialEq for TextRef
Auto Trait Implementations§
impl Freeze for TextRef
impl RefUnwindSafe for TextRef
impl Send for TextRef
impl Sync for TextRef
impl Unpin for TextRef
impl UnsafeUnpin for TextRef
impl UnwindSafe for TextRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more