pub enum ScalarType {
Bool,
U8,
U16,
U32,
U64,
I8,
I16,
I32,
I64,
F32,
F64,
Enum(String),
}Expand description
A v1 scalar type, including enum references and list element types.
Variants§
Implementations§
Source§impl ScalarType
impl ScalarType
Sourcepub fn is_numeric(&self) -> bool
pub fn is_numeric(&self) -> bool
Whether this scalar is a numeric predictor input.
Trait Implementations§
Source§impl Clone for ScalarType
impl Clone for ScalarType
Source§impl Debug for ScalarType
impl Debug for ScalarType
impl Eq for ScalarType
Source§impl PartialEq for ScalarType
impl PartialEq for ScalarType
impl StructuralPartialEq for ScalarType
Auto Trait Implementations§
impl Freeze for ScalarType
impl RefUnwindSafe for ScalarType
impl Send for ScalarType
impl Sync for ScalarType
impl Unpin for ScalarType
impl UnsafeUnpin for ScalarType
impl UnwindSafe for ScalarType
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