pub enum ModelVersion {
V4,
V5,
V6,
V7,
}Variants§
Trait Implementations§
Source§impl Clone for ModelVersion
impl Clone for ModelVersion
Source§fn clone(&self) -> ModelVersion
fn clone(&self) -> ModelVersion
Returns a duplicate of the value. Read more
1.0.0 · 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 ModelVersion
impl Debug for ModelVersion
Source§impl<'de> Deserialize<'de> for ModelVersion
impl<'de> Deserialize<'de> for ModelVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ModelVersion> for JsValue
impl From<ModelVersion> for JsValue
Source§fn from(value: ModelVersion) -> Self
fn from(value: ModelVersion) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ModelVersion
impl FromWasmAbi for ModelVersion
Source§impl Hash for ModelVersion
impl Hash for ModelVersion
Source§impl IntoWasmAbi for ModelVersion
impl IntoWasmAbi for ModelVersion
Source§impl OptionFromWasmAbi for ModelVersion
impl OptionFromWasmAbi for ModelVersion
Source§impl OptionIntoWasmAbi for ModelVersion
impl OptionIntoWasmAbi for ModelVersion
Source§impl PartialEq for ModelVersion
impl PartialEq for ModelVersion
Source§impl Serialize for ModelVersion
impl Serialize for ModelVersion
Source§impl TryFromJsValue for ModelVersion
impl TryFromJsValue for ModelVersion
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <ModelVersion as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <ModelVersion as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for ModelVersion
impl VectorFromWasmAbi for ModelVersion
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ModelVersion]>
Source§impl VectorIntoWasmAbi for ModelVersion
impl VectorIntoWasmAbi for ModelVersion
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ModelVersion]>) -> Self::Abi
Source§impl WasmDescribeVector for ModelVersion
impl WasmDescribeVector for ModelVersion
impl Copy for ModelVersion
impl Eq for ModelVersion
impl StructuralPartialEq for ModelVersion
Auto Trait Implementations§
impl Freeze for ModelVersion
impl RefUnwindSafe for ModelVersion
impl Send for ModelVersion
impl Sync for ModelVersion
impl Unpin for ModelVersion
impl UnwindSafe for ModelVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.