#[non_exhaustive]pub struct ViewerLabels {Show 15 fields
pub previous: String,
pub next: String,
pub page: String,
pub search: String,
pub previous_match: String,
pub next_match: String,
pub no_matches: String,
pub of: String,
pub thumbnails: String,
pub thumbnail_of_page: String,
pub zoom_out: String,
pub zoom_in: String,
pub fit_width: String,
pub print: String,
pub report_error: String,
}Expand description
The text a viewer shows.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.previous: String“Previous” in the page navigation.
next: String“Next” in the page navigation.
page: String“Page” in the page navigation.
search: StringThe search field’s hint.
previous_match: StringThe previous search result.
next_match: StringThe next search result.
no_matches: StringShown when a search finds nothing.
of: StringBetween a result’s position and the total.
thumbnails: StringShows or hides the thumbnails.
thumbnail_of_page: StringBefore the number in a thumbnail’s name, for screen readers.
zoom_out: StringZooms out.
zoom_in: StringZooms in.
fit_width: StringFits the page to the window’s width.
print: StringPrints the document.
report_error: StringThe title of a problem in the report.
Implementations§
Source§impl ViewerLabels
impl ViewerLabels
Sourcepub fn for_culture(culture: &str) -> Self
pub fn for_culture(culture: &str) -> Self
The labels for a language and region such as pt-BR.
Sourcepub fn from_texts(texts: &Texts) -> Self
pub fn from_texts(texts: &Texts) -> Self
The texts of a catalog, in its language. What it does not have comes from English.
Trait Implementations§
Source§impl Clone for ViewerLabels
impl Clone for ViewerLabels
Source§fn clone(&self) -> ViewerLabels
fn clone(&self) -> ViewerLabels
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViewerLabels
impl Debug for ViewerLabels
Auto Trait Implementations§
impl Freeze for ViewerLabels
impl RefUnwindSafe for ViewerLabels
impl Send for ViewerLabels
impl Sync for ViewerLabels
impl Unpin for ViewerLabels
impl UnsafeUnpin for ViewerLabels
impl UnwindSafe for ViewerLabels
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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