pub struct Lowered {
pub format: String,
pub spans: Vec<(SpanStyle, String)>,
}Expand description
A styled line lowered for a translate component (spec-0096 §3.3).
Fields§
§format: StringThe line with span i replaced by %<i+1>$s and every other %
doubled: the component’s fallback and the language file’s value.
spans: Vec<(SpanStyle, String)>Each span’s style and its text (every % doubled), by index: the
with arguments, and the language file’s <key>.span.<i> values.
Trait Implementations§
impl Eq for Lowered
impl StructuralPartialEq for Lowered
Auto Trait Implementations§
impl Freeze for Lowered
impl RefUnwindSafe for Lowered
impl Send for Lowered
impl Sync for Lowered
impl Unpin for Lowered
impl UnsafeUnpin for Lowered
impl UnwindSafe for Lowered
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