pub enum SelectBundledTranslationError {
LanguageNotFound {
available_languages: SharedVector<SharedString>,
},
NoTranslationsBundled,
}
Expand description
Error type returned from the select_bundled_translation
function.
Variants§
LanguageNotFound
The language was not found. The list of available languages is included in this error variant.
Fields
§
available_languages: SharedVector<SharedString>
NoTranslationsBundled
There are no bundled translations. Either select_bundled_translation
was called before creating a component,
or the application’s .slint
file was compiled without the bundle translation option.
Trait Implementations§
Source§impl Error for SelectBundledTranslationError
impl Error for SelectBundledTranslationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SelectBundledTranslationError
impl RefUnwindSafe for SelectBundledTranslationError
impl Send for SelectBundledTranslationError
impl !Sync for SelectBundledTranslationError
impl Unpin for SelectBundledTranslationError
impl UnwindSafe for SelectBundledTranslationError
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
Converts the given value to a
SharedString
.