ScalarOps

Trait ScalarOps 

Source
pub trait ScalarOps:
    Sealed
    + Sized
    + Into<Scalar> {
    // Required methods
    fn is_valid(&self) -> bool;
    fn repeat(&self, n: usize) -> VectorMut;

    // Provided method
    fn is_invalid(&self) -> bool { ... }
}
Expand description

Trait for scalar operations.

Required Methods§

Source

fn is_valid(&self) -> bool

Returns true if the scalar is valid (not null).

Source

fn repeat(&self, n: usize) -> VectorMut

Creates a new vector with n repetitions of this scalar.

Provided Methods§

Source

fn is_invalid(&self) -> bool

Returns true if the scalar is null.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§