pub struct ConfiguredSystemLanguageModel { /* private fields */ }Expand description
A configured SystemLanguageModel instance.
Implementations§
Source§impl ConfiguredSystemLanguageModel
impl ConfiguredSystemLanguageModel
Sourcepub fn availability(&self) -> Availability
pub fn availability(&self) -> Availability
Detailed availability of this configured model.
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Convenience: availability() == Availability::Available.
Sourcepub fn supported_languages(&self) -> Vec<String>
pub fn supported_languages(&self) -> Vec<String>
Supported languages for this configured model.
Sourcepub fn supports_locale(&self, locale_identifier: &str) -> bool
pub fn supports_locale(&self, locale_identifier: &str) -> bool
Whether this configured model supports a locale.
Trait Implementations§
Source§impl Drop for ConfiguredSystemLanguageModel
impl Drop for ConfiguredSystemLanguageModel
Auto Trait Implementations§
impl Freeze for ConfiguredSystemLanguageModel
impl RefUnwindSafe for ConfiguredSystemLanguageModel
impl !Send for ConfiguredSystemLanguageModel
impl !Sync for ConfiguredSystemLanguageModel
impl Unpin for ConfiguredSystemLanguageModel
impl UnsafeUnpin for ConfiguredSystemLanguageModel
impl UnwindSafe for ConfiguredSystemLanguageModel
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