Struct polars_arrow::compute::cast::CastOptions
source · pub struct CastOptions {
pub wrapped: bool,
pub partial: bool,
}
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
Implementations§
source§impl CastOptions
impl CastOptions
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
impl Copy for CastOptions
Auto Trait Implementations§
impl Freeze for CastOptions
impl RefUnwindSafe for CastOptions
impl Send for CastOptions
impl Sync for CastOptions
impl Unpin for CastOptions
impl UnwindSafe for CastOptions
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