pub struct SettingPresentation {
pub english_name: &'static str,
pub locale_section: &'static str,
}Expand description
Locale-facing names associated with a canonical setting concept.
Fields§
§english_name: &'static str§locale_section: &'static strImplementations§
Source§impl SettingPresentation
impl SettingPresentation
pub fn localized_name(&self, locale: &str) -> Option<&'static str>
Trait Implementations§
Source§impl Clone for SettingPresentation
impl Clone for SettingPresentation
Source§fn clone(&self) -> SettingPresentation
fn clone(&self) -> SettingPresentation
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 SettingPresentation
impl Debug for SettingPresentation
impl Eq for SettingPresentation
Source§impl PartialEq for SettingPresentation
impl PartialEq for SettingPresentation
impl StructuralPartialEq for SettingPresentation
Auto Trait Implementations§
impl Freeze for SettingPresentation
impl RefUnwindSafe for SettingPresentation
impl Send for SettingPresentation
impl Sync for SettingPresentation
impl Unpin for SettingPresentation
impl UnsafeUnpin for SettingPresentation
impl UnwindSafe for SettingPresentation
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