#[non_exhaustive]pub enum ParamKind {
Scalar,
Int,
Float,
Array,
Text,
}Expand description
Storage form of one parameter dictionary entry.
The variant follows the native type code, which decides the getter a layer uses. A binary parameter stream carries an untyped scalar that both scalar getters read, while a text entry stores an integer, a float, a tensor or a string.
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.
Scalar
Untyped binary scalar, readable through either scalar getter.
Int
Integer value.
Float
Single precision value.
Array
Tensor or binary array value.
Text
Text value.
Trait Implementations§
impl Copy for ParamKind
impl Eq for ParamKind
impl StructuralPartialEq for ParamKind
Auto Trait Implementations§
impl Freeze for ParamKind
impl RefUnwindSafe for ParamKind
impl Send for ParamKind
impl Sync for ParamKind
impl Unpin for ParamKind
impl UnsafeUnpin for ParamKind
impl UnwindSafe for ParamKind
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