Struct polars_core::series::Series [−][src]
pub struct Series(pub Arc<dyn SeriesTrait>);
Expand description
Series
The columnar data type for a DataFrame. The Series enum consists
of typed ChunkedArray’s. To quickly cast
a Series
to a ChunkedArray
you can call the method with the name of the type:
let s: Series = [1, 2, 3].iter().collect(); // Quickly obtain the ChunkedArray wrapped by the Series. let chunked_array = s.i32().unwrap();
Arithmetic
You can do standard arithmetic on series.
let s: Series = [1, 2, 3].iter().collect(); let out_add = &s + &s; let out_sub = &s - &s; let out_div = &s / &s; let out_mul = &s * &s;
Or with series and numbers.
let s: Series = (1..3).collect(); let out_add_one = &s + 1; let out_multiply = &s * 10; // Could not overload left hand side operator. let out_divide = 1.div(&s); let out_add = 1.add(&s); let out_subtract = 1.sub(&s); let out_multiply = 1.mul(&s);
Comparison
You can obtain boolean mask by comparing series.
use itertools::Itertools; let s = Series::new("dollars", &[1, 2, 3]); let mask = s.eq(1); let valid = [true, false, false].iter(); assert!(mask .into_iter() .map(|opt_bool| opt_bool.unwrap()) // option, because series can be null .zip(valid) .all(|(a, b)| a == *b))
See all the comparison operators in the CmpOps trait
Iterators
The Series variants contain differently typed ChunkedArray’s. These structs can be turned into iterators, making it possible to use any function/ closure you want on a Series.
These iterators return an Option<T>
because the values of a series may be null.
use polars_core::prelude::*; let pi = 3.14; let s = Series::new("angle", [2f32 * pi, pi, 1.5 * pi].as_ref()); let s_cos: Series = s.f32() .expect("series was not an f32 dtype") .into_iter() .map(|opt_angle| opt_angle.map(|angle| angle.cos())) .collect();
Creation
Series can be create from different data structures. Below we’ll show a few ways we can create a Series object.
// Series van be created from Vec's, slices and arrays Series::new("boolean series", &vec![true, false, true]); Series::new("int series", &[1, 2, 3]); // And can be nullable Series::new("got nulls", &[Some(1), None, Some(2)]); // Series can also be collected from iterators let from_iter: Series = (0..10) .into_iter() .collect();
Implementations
impl Series
[src]
impl Series
[src]pub fn append_array(&mut self, other: ArrayRef) -> Result<&mut Self>
[src]
pub fn append_array(&mut self, other: ArrayRef) -> Result<&mut Self>
[src]Append arrow array of same datatype.
pub fn append(&mut self, other: &Series) -> Result<&mut Self>
[src]
pub fn append(&mut self, other: &Series) -> Result<&mut Self>
[src]Append a Series of the same type in place.
pub fn sort_in_place(&mut self, reverse: bool) -> &mut Self
[src]
pub fn sort_in_place(&mut self, reverse: bool) -> &mut Self
[src]Sort in place.
pub fn as_single_ptr(&mut self) -> Result<usize>
[src]
pub fn as_single_ptr(&mut self) -> Result<usize>
[src]Rechunk and return a pointer to the start of the Series. Only implemented for numeric types
pub fn cast<N>(&self) -> Result<Self> where
N: PolarsDataType,
[src]
pub fn cast<N>(&self) -> Result<Self> where
N: PolarsDataType,
[src]Cast to some primitive type.
pub fn sum<T>(&self) -> Option<T> where
T: NumCast,
[src]
pub fn sum<T>(&self) -> Option<T> where
T: NumCast,
[src]Returns None
if the array is empty or only contains null values.
let s = Series::new("days", [1, 2, 3].as_ref()); assert_eq!(s.sum(), Some(6));
pub fn min<T>(&self) -> Option<T> where
T: NumCast,
[src]
pub fn min<T>(&self) -> Option<T> where
T: NumCast,
[src]Returns the minimum value in the array, according to the natural order. Returns an option because the array is nullable.
let s = Series::new("days", [1, 2, 3].as_ref()); assert_eq!(s.min(), Some(1));
pub fn max<T>(&self) -> Option<T> where
T: NumCast,
[src]
pub fn max<T>(&self) -> Option<T> where
T: NumCast,
[src]Returns the maximum value in the array, according to the natural order. Returns an option because the array is nullable.
let s = Series::new("days", [1, 2, 3].as_ref()); assert_eq!(s.max(), Some(3));
pub fn explode(&self) -> Result<Series>
[src]
pub fn explode(&self) -> Result<Series>
[src]Explode a list or utf8 Series. This expands every item to a new row..
pub fn is_nan(&self) -> Result<BooleanChunked>
[src]
pub fn is_nan(&self) -> Result<BooleanChunked>
[src]Check if float value is NaN (note this is different than missing/ null)
pub fn is_not_nan(&self) -> Result<BooleanChunked>
[src]
pub fn is_not_nan(&self) -> Result<BooleanChunked>
[src]Check if float value is NaN (note this is different than missing/ null)
pub fn is_finite(&self) -> Result<BooleanChunked>
[src]
pub fn is_finite(&self) -> Result<BooleanChunked>
[src]Check if float value is finite
pub fn is_infinite(&self) -> Result<BooleanChunked>
[src]
pub fn is_infinite(&self) -> Result<BooleanChunked>
[src]Check if float value is finite
pub fn zip_with(&self, mask: &BooleanChunked, other: &Series) -> Result<Series>
[src]
pub fn zip_with(&self, mask: &BooleanChunked, other: &Series) -> Result<Series>
[src]Create a new ChunkedArray with values from self where the mask evaluates true
and values
from other
where the mask evaluates false
pub fn to_physical_repr(&self) -> Series
[src]
pub fn to_physical_repr(&self) -> Series
[src]Cast a datelike Series to their physical representation. Primitives remain unchanged
- Date32 -> Int32
- Date64 -> Int64
- Time64 -> Int64
- Duration -> Int64
pub unsafe fn take_unchecked_threaded(
&self,
idx: &UInt32Chunked,
rechunk: bool
) -> Result<Series>
[src]
pub unsafe fn take_unchecked_threaded(
&self,
idx: &UInt32Chunked,
rechunk: bool
) -> Result<Series>
[src]Take by index if ChunkedArray contains a single chunk.
Safety
This doesn’t check any bounds. Null validity is checked.
pub fn take_threaded(&self, idx: &UInt32Chunked, rechunk: bool) -> Series
[src]
pub fn take_threaded(&self, idx: &UInt32Chunked, rechunk: bool) -> Series
[src]Take by index. This operation is clone.
Safety
Out of bounds access doesn’t Error but will return a Null value
pub fn filter_threaded(
&self,
filter: &BooleanChunked,
rechunk: bool
) -> Result<Series>
[src]
pub fn filter_threaded(
&self,
filter: &BooleanChunked,
rechunk: bool
) -> Result<Series>
[src]Filter by boolean mask. This operation clones data.
impl Series
[src]
impl Series
[src]pub fn series_equal(&self, other: &Series) -> bool
[src]
pub fn series_equal(&self, other: &Series) -> bool
[src]Check if series are equal. Note that None == None
evaluates to false
pub fn series_equal_missing(&self, other: &Series) -> bool
[src]
pub fn series_equal_missing(&self, other: &Series) -> bool
[src]Check if all values in series are equal where None == None
evaluates to true
.
pub fn get_data_ptr(&self) -> usize
[src]
pub fn get_data_ptr(&self) -> usize
[src]Get a pointer to the underlying data of this Series. Can be useful for fast comparisons.
Methods from Deref<Target = dyn SeriesTrait>
pub fn unpack<N: 'static>(&self) -> Result<&ChunkedArray<N>> where
N: PolarsDataType,
[src]
N: PolarsDataType,
Trait Implementations
impl<'a> AsRef<dyn SeriesTrait + 'a> for Series
[src]
impl<'a> AsRef<dyn SeriesTrait + 'a> for Series
[src]fn as_ref(&self) -> &(dyn SeriesTrait + 'a)
[src]
fn as_ref(&self) -> &(dyn SeriesTrait + 'a)
[src]Performs the conversion.
impl ChunkAgg<Series> for ListChunked
[src]
impl ChunkAgg<Series> for ListChunked
[src]fn sum(&self) -> Option<T>
[src]
fn sum(&self) -> Option<T>
[src]Aggregate the sum of the ChunkedArray.
Returns None
if the array is empty or only contains null values. Read more
fn min(&self) -> Option<T>
[src]
fn max(&self) -> Option<T>
[src]
fn max(&self) -> Option<T>
[src]Returns the maximum value in the array, according to the natural order.
Returns None
if the array is empty or only contains null values. Read more
fn mean(&self) -> Option<f64>
[src]
fn mean(&self) -> Option<f64>
[src]Returns the mean value in the array.
Returns None
if the array is empty or only contains null values. Read more
impl<'a> ChunkApply<'a, Series, Series> for ListChunked
[src]
impl<'a> ChunkApply<'a, Series, Series> for ListChunked
[src]fn apply<F>(&'a self, f: F) -> Self where
F: Fn(Series) -> Series + Copy,
[src]
fn apply<F>(&'a self, f: F) -> Self where
F: Fn(Series) -> Series + Copy,
[src]Apply a closure F
elementwise.
fn apply_with_idx<F>(&'a self, f: F) -> Self where
F: Fn((usize, Series)) -> Series + Copy,
[src]
fn apply_with_idx<F>(&'a self, f: F) -> Self where
F: Fn((usize, Series)) -> Series + Copy,
[src]Apply a closure elementwise. The closure gets the index of the element as first argument.
fn apply_with_idx_on_opt<F>(&'a self, f: F) -> Self where
F: Fn((usize, Option<Series>)) -> Option<Series> + Copy,
[src]
fn apply_with_idx_on_opt<F>(&'a self, f: F) -> Self where
F: Fn((usize, Option<Series>)) -> Option<Series> + Copy,
[src]Apply a closure elementwise. The closure gets the index of the element as first argument.
fn apply_cast_numeric<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Series) -> S::Native + Copy,
S: PolarsNumericType,
[src]
fn apply_cast_numeric<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Series) -> S::Native + Copy,
S: PolarsNumericType,
[src]Apply a closure elementwise and cast to a Numeric ChunkedArray. This is fastest when the null check branching is more expensive than the closure application. Read more
fn branch_apply_cast_numeric_no_null<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Option<Series>) -> S::Native + Copy,
S: PolarsNumericType,
[src]
fn branch_apply_cast_numeric_no_null<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Option<Series>) -> S::Native + Copy,
S: PolarsNumericType,
[src]Apply a closure on optional values and cast to Numeric ChunkedArray without null values.
impl ChunkCompare<&'_ Series> for Series
[src]
impl ChunkCompare<&'_ Series> for Series
[src]fn eq(&self, rhs: &Series) -> BooleanChunked
[src]
fn eq(&self, rhs: &Series) -> BooleanChunked
[src]Create a boolean mask by checking for equality.
fn neq(&self, rhs: &Series) -> BooleanChunked
[src]
fn neq(&self, rhs: &Series) -> BooleanChunked
[src]Create a boolean mask by checking for inequality.
fn gt(&self, rhs: &Series) -> BooleanChunked
[src]
fn gt(&self, rhs: &Series) -> BooleanChunked
[src]Create a boolean mask by checking if lhs > rhs.
fn gt_eq(&self, rhs: &Series) -> BooleanChunked
[src]
fn gt_eq(&self, rhs: &Series) -> BooleanChunked
[src]Create a boolean mask by checking if lhs >= rhs.
fn lt(&self, rhs: &Series) -> BooleanChunked
[src]
fn lt(&self, rhs: &Series) -> BooleanChunked
[src]Create a boolean mask by checking if lhs < rhs.
fn lt_eq(&self, rhs: &Series) -> BooleanChunked
[src]
fn lt_eq(&self, rhs: &Series) -> BooleanChunked
[src]Create a boolean mask by checking if lhs <= rhs.
fn eq_missing(&self, rhs: &Series) -> BooleanChunked
[src]
fn eq_missing(&self, rhs: &Series) -> BooleanChunked
[src]Check for equality and regard missing values as equal.
impl ChunkCompare<&'_ str> for Series
[src]
impl ChunkCompare<&'_ str> for Series
[src]fn eq_missing(&self, rhs: &str) -> BooleanChunked
[src]
fn eq_missing(&self, rhs: &str) -> BooleanChunked
[src]Check for equality and regard missing values as equal.
fn eq(&self, rhs: &str) -> BooleanChunked
[src]
fn eq(&self, rhs: &str) -> BooleanChunked
[src]Check for equality.
fn neq(&self, rhs: &str) -> BooleanChunked
[src]
fn neq(&self, rhs: &str) -> BooleanChunked
[src]Check for inequality.
fn gt(&self, rhs: &str) -> BooleanChunked
[src]
fn gt(&self, rhs: &str) -> BooleanChunked
[src]Greater than comparison.
fn gt_eq(&self, rhs: &str) -> BooleanChunked
[src]
fn gt_eq(&self, rhs: &str) -> BooleanChunked
[src]Greater than or equal comparison.
fn lt(&self, rhs: &str) -> BooleanChunked
[src]
fn lt(&self, rhs: &str) -> BooleanChunked
[src]Less than comparison.
fn lt_eq(&self, rhs: &str) -> BooleanChunked
[src]
fn lt_eq(&self, rhs: &str) -> BooleanChunked
[src]Less than or equal comparison
impl<Rhs> ChunkCompare<Rhs> for Series where
Rhs: NumComp,
[src]
impl<Rhs> ChunkCompare<Rhs> for Series where
Rhs: NumComp,
[src]fn eq_missing(&self, rhs: Rhs) -> BooleanChunked
[src]
fn eq_missing(&self, rhs: Rhs) -> BooleanChunked
[src]Check for equality and regard missing values as equal.
fn eq(&self, rhs: Rhs) -> BooleanChunked
[src]
fn eq(&self, rhs: Rhs) -> BooleanChunked
[src]Check for equality.
fn neq(&self, rhs: Rhs) -> BooleanChunked
[src]
fn neq(&self, rhs: Rhs) -> BooleanChunked
[src]Check for inequality.
fn gt(&self, rhs: Rhs) -> BooleanChunked
[src]
fn gt(&self, rhs: Rhs) -> BooleanChunked
[src]Greater than comparison.
fn gt_eq(&self, rhs: Rhs) -> BooleanChunked
[src]
fn gt_eq(&self, rhs: Rhs) -> BooleanChunked
[src]Greater than or equal comparison.
fn lt(&self, rhs: Rhs) -> BooleanChunked
[src]
fn lt(&self, rhs: Rhs) -> BooleanChunked
[src]Less than comparison.
fn lt_eq(&self, rhs: Rhs) -> BooleanChunked
[src]
fn lt_eq(&self, rhs: Rhs) -> BooleanChunked
[src]Less than or equal comparison
impl ChunkFillNoneValue<&'_ Series> for ListChunked
[src]
impl ChunkFillNoneValue<&'_ Series> for ListChunked
[src]fn fill_none_with_value(&self, _value: &Series) -> Result<Self>
[src]
fn fill_none_with_value(&self, _value: &Series) -> Result<Self>
[src]Replace None values with a give value T
.
impl ChunkFull<&'_ Series> for ListChunked
[src]
impl ChunkFull<&'_ Series> for ListChunked
[src]impl ChunkVar<Series> for ListChunked
[src]
impl ChunkVar<Series> for ListChunked
[src]impl<T> ChunkVar<Series> for ObjectChunked<T>
[src]
impl<T> ChunkVar<Series> for ObjectChunked<T>
[src]impl Deref for Series
[src]
impl Deref for Series
[src]type Target = dyn SeriesTrait
type Target = dyn SeriesTrait
The resulting type after dereferencing.
impl<T> From<ChunkedArray<T>> for Series where
T: PolarsDataType,
ChunkedArray<T>: IntoSeries,
[src]
impl<T> From<ChunkedArray<T>> for Series where
T: PolarsDataType,
ChunkedArray<T>: IntoSeries,
[src]fn from(ca: ChunkedArray<T>) -> Self
[src]
fn from(ca: ChunkedArray<T>) -> Self
[src]Performs the conversion.
impl<'a> FromIterator<&'a bool> for Series
[src]
impl<'a> FromIterator<&'a bool> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a bool>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a bool>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a f32> for Series
[src]
impl<'a> FromIterator<&'a f32> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a f32>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a f32>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a f64> for Series
[src]
impl<'a> FromIterator<&'a f64> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a f64>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a f64>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a i16> for Series
[src]
impl<'a> FromIterator<&'a i16> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a i16>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a i16>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a i32> for Series
[src]
impl<'a> FromIterator<&'a i32> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a i32>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a i32>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a i64> for Series
[src]
impl<'a> FromIterator<&'a i64> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a i64>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a i64>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a i8> for Series
[src]
impl<'a> FromIterator<&'a i8> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a i8>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a i8>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a str> for Series
[src]
impl<'a> FromIterator<&'a str> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a str>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a str>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a u16> for Series
[src]
impl<'a> FromIterator<&'a u16> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a u16>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a u16>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a u32> for Series
[src]
impl<'a> FromIterator<&'a u32> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a u32>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a u32>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a u64> for Series
[src]
impl<'a> FromIterator<&'a u64> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a u64>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a u64>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a u8> for Series
[src]
impl<'a> FromIterator<&'a u8> for Series
[src]fn from_iter<I: IntoIterator<Item = &'a u8>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = &'a u8>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl FromIterator<Option<bool>> for Series
[src]
impl FromIterator<Option<bool>> for Series
[src]impl FromIterator<Option<f32>> for Series
[src]
impl FromIterator<Option<f32>> for Series
[src]impl FromIterator<Option<f64>> for Series
[src]
impl FromIterator<Option<f64>> for Series
[src]impl FromIterator<Option<i16>> for Series
[src]
impl FromIterator<Option<i16>> for Series
[src]impl FromIterator<Option<i32>> for Series
[src]
impl FromIterator<Option<i32>> for Series
[src]impl FromIterator<Option<i64>> for Series
[src]
impl FromIterator<Option<i64>> for Series
[src]impl FromIterator<Option<i8>> for Series
[src]
impl FromIterator<Option<i8>> for Series
[src]impl FromIterator<Option<u16>> for Series
[src]
impl FromIterator<Option<u16>> for Series
[src]impl FromIterator<Option<u32>> for Series
[src]
impl FromIterator<Option<u32>> for Series
[src]impl FromIterator<Option<u64>> for Series
[src]
impl FromIterator<Option<u64>> for Series
[src]impl FromIterator<Option<u8>> for Series
[src]
impl FromIterator<Option<u8>> for Series
[src]impl FromIterator<Series> for DataFrame
[src]
impl FromIterator<Series> for DataFrame
[src]fn from_iter<T: IntoIterator<Item = Series>>(iter: T) -> Self
[src]
fn from_iter<T: IntoIterator<Item = Series>>(iter: T) -> Self
[src]Panics
Panics if Series have different lengths.
impl FromIterator<bool> for Series
[src]
impl FromIterator<bool> for Series
[src]fn from_iter<I: IntoIterator<Item = bool>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = bool>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl FromIterator<f32> for Series
[src]
impl FromIterator<f32> for Series
[src]fn from_iter<I: IntoIterator<Item = f32>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = f32>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl FromIterator<f64> for Series
[src]
impl FromIterator<f64> for Series
[src]fn from_iter<I: IntoIterator<Item = f64>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = f64>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl FromIterator<i16> for Series
[src]
impl FromIterator<i16> for Series
[src]fn from_iter<I: IntoIterator<Item = i16>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = i16>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl FromIterator<i32> for Series
[src]
impl FromIterator<i32> for Series
[src]fn from_iter<I: IntoIterator<Item = i32>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = i32>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl FromIterator<i64> for Series
[src]
impl FromIterator<i64> for Series
[src]fn from_iter<I: IntoIterator<Item = i64>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = i64>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl FromIterator<i8> for Series
[src]
impl FromIterator<i8> for Series
[src]fn from_iter<I: IntoIterator<Item = i8>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = i8>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl FromIterator<u16> for Series
[src]
impl FromIterator<u16> for Series
[src]fn from_iter<I: IntoIterator<Item = u16>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = u16>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl FromIterator<u32> for Series
[src]
impl FromIterator<u32> for Series
[src]fn from_iter<I: IntoIterator<Item = u32>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = u32>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl FromIterator<u64> for Series
[src]
impl FromIterator<u64> for Series
[src]fn from_iter<I: IntoIterator<Item = u64>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = u64>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl FromIterator<u8> for Series
[src]
impl FromIterator<u8> for Series
[src]fn from_iter<I: IntoIterator<Item = u8>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = u8>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl IntoSeries for Series
[src]
impl IntoSeries for Series
[src]fn into_series(self) -> Series
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Series
impl Send for Series
impl Sync for Series
impl Unpin for Series
impl !UnwindSafe for Series
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T, U> Cast<U> for T where
U: FromCast<T>,
impl<T, U> Cast<U> for T where
U: FromCast<T>,
pub fn cast(self) -> U
pub fn cast(self) -> U
Numeric cast from self
to T
.
impl<T> FromCast<T> for T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
pub fn from_cast(t: T) -> T
Numeric cast from T
to Self
.
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,