Struct polars_core::series::unstable::UnstableSeries
source · [−]pub struct UnstableSeries<'a> { /* private fields */ }
Expand description
A wrapper type that should make it a bit more clear that we should not clone Series
Implementations
sourceimpl<'a> UnstableSeries<'a>
impl<'a> UnstableSeries<'a>
pub fn new(series: &'a mut Series) -> Self
pub fn deep_clone(&self) -> Series
sourcepub fn swap(&mut self, array: &mut ArrayRef)
pub fn swap(&mut self, array: &mut ArrayRef)
Swaps inner state with the array
. Prefer UnstableSeries::with_array
as this
restores the state.
sourcepub fn with_array<F, T>(&mut self, array: &mut ArrayRef, f: F) -> Twhere
F: Fn(&UnstableSeries<'_>) -> T,
pub fn with_array<F, T>(&mut self, array: &mut ArrayRef, f: F) -> Twhere
F: Fn(&UnstableSeries<'_>) -> T,
Temporary swaps out the array, and restores the original state
when application of the function f
is done.
Trait Implementations
sourceimpl AsMut<Series> for UnstableSeries<'_>
impl AsMut<Series> for UnstableSeries<'_>
sourceimpl AsRef<Series> for UnstableSeries<'_>
impl AsRef<Series> for UnstableSeries<'_>
We don’t implement Deref so that the caller is aware of converting to Series
sourceimpl<'a> Clone for UnstableSeries<'a>
impl<'a> Clone for UnstableSeries<'a>
sourcefn clone(&self) -> UnstableSeries<'a>
fn clone(&self) -> UnstableSeries<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<'a> Copy for UnstableSeries<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for UnstableSeries<'a>
impl<'a> !Send for UnstableSeries<'a>
impl<'a> !Sync for UnstableSeries<'a>
impl<'a> Unpin for UnstableSeries<'a>
impl<'a> !UnwindSafe for UnstableSeries<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more