#[non_exhaustive]pub enum Availability {
Available,
Unavailable(Unavailability),
}Expand description
Result of SystemLanguageModel::availability.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Available
Model is loaded and ready to generate.
Model cannot be used; the inner value explains why.
Trait Implementations§
Source§impl Clone for Availability
impl Clone for Availability
Source§fn clone(&self) -> Availability
fn clone(&self) -> Availability
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 moreimpl Copy for Availability
Source§impl Debug for Availability
impl Debug for Availability
impl Eq for Availability
Source§impl PartialEq for Availability
impl PartialEq for Availability
Source§fn eq(&self, other: &Availability) -> bool
fn eq(&self, other: &Availability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Availability
Auto Trait Implementations§
impl Freeze for Availability
impl RefUnwindSafe for Availability
impl Send for Availability
impl Sync for Availability
impl Unpin for Availability
impl UnsafeUnpin for Availability
impl UnwindSafe for Availability
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