Struct arrow2::compute::cast::CastOptions
source · Available on crate feature
compute_cast
only.Expand description
options defining how Cast kernels behave
Fields§
§wrapped: bool
default to false
whether an overflowing cast should be converted to None
(default), or be wrapped (i.e. 256i16 as u8 = 0
vectorized).
Settings this to true
is 5-6x faster for numeric types.
partial: bool
default to false whether to cast to an integer at the best-effort
Trait Implementations§
source§impl Clone for CastOptions
impl Clone for CastOptions
source§fn clone(&self) -> CastOptions
fn clone(&self) -> CastOptions
Returns a copy 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 CastOptions
impl Debug for CastOptions
source§impl Default for CastOptions
impl Default for CastOptions
source§fn default() -> CastOptions
fn default() -> CastOptions
Returns the “default value” for a type. Read more