[−][src]Struct polars::chunked_array::ChunkedArray
Implementations
impl<T> ChunkedArray<T> where
T: PolarsDataType,
[src]
T: PolarsDataType,
pub fn new_from_chunks(name: &str, chunks: Vec<ArrayRef>) -> Self
[src]
Create a new ChunkedArray from existing chunks.
pub fn null_bits(&self) -> Vec<(usize, Option<Buffer>)>
[src]
impl<T> ChunkedArray<T> where
T: PolarsDataType,
ChunkedArray<T>: ChunkOps,
[src]
T: PolarsDataType,
ChunkedArray<T>: ChunkOps,
pub fn chunk_id(&self) -> &Vec<usize>
[src]
pub fn chunks(&self) -> &Vec<ArrayRef>
[src]
A reference to the chunks
pub fn null_count(&self) -> usize
[src]
Count the null values.
pub fn is_null(&self) -> BooleanChunked
[src]
Get a mask of the null values.
pub fn u32(self) -> Result<UInt32Chunked>
[src]
Downcast
pub fn i32(self) -> Result<Int32Chunked>
[src]
Downcast
pub fn i64(self) -> Result<Int64Chunked>
[src]
Downcast
pub fn f32(self) -> Result<Float32Chunked>
[src]
Downcast
pub fn f64(self) -> Result<Float64Chunked>
[src]
Downcast
pub fn bool(self) -> Result<BooleanChunked>
[src]
Downcast
pub fn utf8(self) -> Result<Utf8Chunked>
[src]
Downcast
pub fn date32(self) -> Result<Date32Chunked>
[src]
Downcast
pub fn date64(self) -> Result<Date64Chunked>
[src]
Downcast
pub fn time64ns(self) -> Result<Time64NsChunked>
[src]
Downcast
pub fn duration_ns(self) -> Result<DurationNsChunked>
[src]
Downcast
pub fn limit(&self, num_elements: usize) -> Result<Self>
[src]
Take a view of top n elements
pub fn filter(&self, filter: &BooleanChunked) -> Result<Self>
[src]
Chunk sizes should match or rhs should have one chunk
pub fn append_array(&mut self, other: ArrayRef) -> Result<()>
[src]
Append arrow array in place.
pub fn len(&self) -> usize
[src]
Combined length of all the chunks.
pub fn get(&self, index: usize) -> AnyType
[src]
Get a single value. Beware this is slow.
pub fn slice(&self, offset: usize, length: usize) -> Result<Self>
[src]
Slice the array. The chunks are reallocated the underlying data slices are zero copy.
pub fn head(&self, length: Option<usize>) -> Self
[src]
Get the head of the ChunkedArray
pub fn tail(&self, length: Option<usize>) -> Self
[src]
Get the tail of the ChunkedArray
pub fn append(&mut self, other: &Self) where
Self: Sized,
[src]
Self: Sized,
Append in place.
impl ChunkedArray<Utf8Type>
[src]
pub fn new_utf8_from_slice<S: AsRef<str>>(name: &str, v: &[S]) -> Self
[src]
pub fn new_utf8_from_opt_slice<S: AsRef<str>>(
name: &str,
opt_v: &[Option<S>]
) -> Self
[src]
name: &str,
opt_v: &[Option<S>]
) -> Self
impl<T> ChunkedArray<T> where
T: PolarsDataType,
ChunkedArray<T>: ChunkOps,
[src]
T: PolarsDataType,
ChunkedArray<T>: ChunkOps,
pub fn name(&self) -> &str
[src]
Name of the ChunkedArray.
pub fn ref_field(&self) -> &Field
[src]
Get a reference to the field.
pub fn rename(&mut self, name: &str)
[src]
Rename this ChunkedArray.
impl<T> ChunkedArray<T> where
T: ArrowPrimitiveType,
[src]
T: ArrowPrimitiveType,
pub fn new_from_slice(name: &str, v: &[T::Native]) -> Self
[src]
pub fn new_from_opt_slice(name: &str, opt_v: &[Option<T::Native>]) -> Self
[src]
pub fn new_with_null_bitmap(
name: &str,
v: &[T::Native],
buffer: Option<Buffer>,
null_count: usize
) -> Self
[src]
name: &str,
v: &[T::Native],
buffer: Option<Buffer>,
null_count: usize
) -> Self
Nullify values in slice with an existing null bitmap
impl<T> ChunkedArray<T> where
T: PolarsNumericType,
[src]
T: PolarsNumericType,
pub fn cont_slice(&self) -> Result<&[T::Native]>
[src]
Contiguous slice
pub fn map<B, F>(&self, f: F) -> Result<Map<Copied<Iter<T::Native>>, F>> where
F: Fn(T::Native) -> B,
[src]
F: Fn(T::Native) -> B,
If cont_slice is successful a closure is mapped over the elements.
Example
use polars::prelude::*; fn multiply(ca: &UInt32Chunked) -> Result<Series> { let mapped = ca.map(|v| v * 2)?; Ok(mapped.collect()) }
pub fn map_null_checks<'a, B, F>(
&'a self,
f: F
) -> Map<Box<dyn ExactSizeIterator<Item = Option<T::Native>> + 'a>, F> where
F: Fn(Option<T::Native>) -> B,
[src]
&'a self,
f: F
) -> Map<Box<dyn ExactSizeIterator<Item = Option<T::Native>> + 'a>, F> where
F: Fn(Option<T::Native>) -> B,
If cont_slice fails we can fallback on an iterator with null checks and map a closure over the elements.
Example
use polars::prelude::*; use itertools::Itertools; fn multiply(ca: &UInt32Chunked) -> Series { let mapped_result = ca.map(|v| v * 2); if let Ok(mapped) = mapped_result { mapped.collect() } else { ca .map_null_checks(|opt_v| opt_v.map(|v |v * 2)).collect() } }
pub fn fold<F, B>(&self, init: B, f: F) -> Result<B> where
F: Fn(B, T::Native) -> B,
[src]
F: Fn(B, T::Native) -> B,
If cont_slice is successful a closure can be applied as aggregation
Example
use polars::prelude::*; fn compute_sum(ca: &UInt32Chunked) -> Result<u32> { ca.fold(0, |acc, value| acc + value) }
pub fn fold_null_checks<F, B>(&self, init: B, f: F) -> B where
F: Fn(B, Option<T::Native>) -> B,
[src]
F: Fn(B, Option<T::Native>) -> B,
If cont_slice fails we can fallback on an iterator with null checks and a closure for aggregation
Example
use polars::prelude::*; fn compute_sum(ca: &UInt32Chunked) -> u32 { match ca.fold(0, |acc, value| acc + value) { // faster sum without null checks was successful Ok(sum) => sum, // Null values or multiple chunks in ChunkedArray, we need to do more bounds checking Err(_) => ca.fold_null_checks(0, |acc, opt_value| { match opt_value { Some(v) => acc + v, None => acc } }) } }
Trait Implementations
impl<T, '_> Add<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
[src]
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
type Output = ChunkedArray<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl<T> Add<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
[src]
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl<T> Agg<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + PartialOrd,
[src]
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + PartialOrd,
fn sum(&self) -> Option<T::Native>
[src]
Returns None
if the array is empty or only contains null values.
fn min(&self) -> Option<T::Native>
[src]
Returns the minimum value in the array, according to the natural order. Returns an option because the array is nullable.
fn max(&self) -> Option<T::Native>
[src]
Returns the maximum value in the array, according to the natural order. Returns an option because the array is nullable.
impl<'a, T> Apply<'a, <T as ArrowPrimitiveType>::Native, <T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
[src]
T: PolarsNumericType,
fn apply<F>(&'a self, f: F) -> Self where
F: Fn(T::Native) -> T::Native,
[src]
F: Fn(T::Native) -> T::Native,
Chooses the fastest path for closure application. Null values remain null.
Example
use polars::prelude::*; fn double(ca: &UInt32Chunked) -> UInt32Chunked { ca.apply(|v| v * 2) }
impl AsMut<ChunkedArray<BooleanType>> for Series
[src]
fn as_mut(&mut self) -> &mut ChunkedArray<BooleanType>
[src]
impl AsMut<ChunkedArray<Float32Type>> for Series
[src]
fn as_mut(&mut self) -> &mut ChunkedArray<Float32Type>
[src]
impl AsMut<ChunkedArray<Float64Type>> for Series
[src]
fn as_mut(&mut self) -> &mut ChunkedArray<Float64Type>
[src]
impl AsMut<ChunkedArray<Int32Type>> for Series
[src]
fn as_mut(&mut self) -> &mut ChunkedArray<Int32Type>
[src]
impl AsMut<ChunkedArray<Int64Type>> for Series
[src]
fn as_mut(&mut self) -> &mut ChunkedArray<Int64Type>
[src]
impl AsMut<ChunkedArray<UInt32Type>> for Series
[src]
fn as_mut(&mut self) -> &mut ChunkedArray<UInt32Type>
[src]
impl AsMut<ChunkedArray<Utf8Type>> for Series
[src]
fn as_mut(&mut self) -> &mut ChunkedArray<Utf8Type>
[src]
impl AsRef<ChunkedArray<BooleanType>> for Series
[src]
fn as_ref(&self) -> &ChunkedArray<BooleanType>
[src]
impl AsRef<ChunkedArray<Float32Type>> for Series
[src]
fn as_ref(&self) -> &ChunkedArray<Float32Type>
[src]
impl AsRef<ChunkedArray<Float64Type>> for Series
[src]
fn as_ref(&self) -> &ChunkedArray<Float64Type>
[src]
impl AsRef<ChunkedArray<Int32Type>> for Series
[src]
fn as_ref(&self) -> &ChunkedArray<Int32Type>
[src]
impl AsRef<ChunkedArray<Int64Type>> for Series
[src]
fn as_ref(&self) -> &ChunkedArray<Int64Type>
[src]
impl<T> AsRef<ChunkedArray<T>> for ChunkedArray<T>
[src]
fn as_ref(&self) -> &ChunkedArray<T>
[src]
impl AsRef<ChunkedArray<UInt32Type>> for Series
[src]
fn as_ref(&self) -> &ChunkedArray<UInt32Type>
[src]
impl AsRef<ChunkedArray<Utf8Type>> for Series
[src]
fn as_ref(&self) -> &ChunkedArray<Utf8Type>
[src]
impl<T> ChunkCast for ChunkedArray<T> where
T: PolarsNumericType,
[src]
T: PolarsNumericType,
fn cast<N>(&self) -> Result<ChunkedArray<N>> where
N: PolarsDataType,
[src]
N: PolarsDataType,
impl<T> ChunkFull<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: ArrowPrimitiveType,
[src]
T: ArrowPrimitiveType,
impl<T> ChunkOps for ChunkedArray<T> where
T: PolarsNumericType,
[src]
T: PolarsNumericType,
fn rechunk(&self, chunk_lengths: Option<&[usize]>) -> Result<Self>
[src]
fn optional_rechunk<A>(&self, rhs: &ChunkedArray<A>) -> Result<Option<Self>>
[src]
impl<T> ChunkSort<T> for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: PartialOrd,
[src]
T: PolarsNumericType,
T::Native: PartialOrd,
fn sort(&self, reverse: bool) -> ChunkedArray<T>
[src]
fn sort_in_place(&mut self, reverse: bool)
[src]
fn argsort(&self, reverse: bool) -> Vec<usize>
[src]
impl<T> Clone for ChunkedArray<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'_> CmpOps<&'_ ChunkedArray<BooleanType>> for BooleanChunked
[src]
fn eq(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
fn neq(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
fn gt(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
fn gt_eq(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
fn lt(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
fn lt_eq(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
impl<T, '_> CmpOps<&'_ ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
[src]
T: PolarsNumericType,
fn eq(&self, rhs: &ChunkedArray<T>) -> BooleanChunked
[src]
fn neq(&self, rhs: &ChunkedArray<T>) -> BooleanChunked
[src]
fn gt(&self, rhs: &ChunkedArray<T>) -> BooleanChunked
[src]
fn gt_eq(&self, rhs: &ChunkedArray<T>) -> BooleanChunked
[src]
fn lt(&self, rhs: &ChunkedArray<T>) -> BooleanChunked
[src]
fn lt_eq(&self, rhs: &ChunkedArray<T>) -> BooleanChunked
[src]
impl<'_> CmpOps<&'_ ChunkedArray<Utf8Type>> for Utf8Chunked
[src]
fn eq(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
fn neq(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
fn gt(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
fn gt_eq(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
fn lt(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
fn lt_eq(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
impl<T, Rhs> CmpOps<Rhs> for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: NumCast,
Rhs: NumComp + ToPrimitive,
[src]
T: PolarsNumericType,
T::Native: NumCast,
Rhs: NumComp + ToPrimitive,
fn eq(&self, rhs: Rhs) -> BooleanChunked
[src]
fn neq(&self, rhs: Rhs) -> BooleanChunked
[src]
fn gt(&self, rhs: Rhs) -> BooleanChunked
[src]
fn gt_eq(&self, rhs: Rhs) -> BooleanChunked
[src]
fn lt(&self, rhs: Rhs) -> BooleanChunked
[src]
fn lt_eq(&self, rhs: Rhs) -> BooleanChunked
[src]
impl<T> Debug for ChunkedArray<T>
[src]
impl<T, '_> Div<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero + One,
[src]
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero + One,
type Output = ChunkedArray<T>
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self::Output
[src]
impl<T> Div<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero + One,
[src]
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero + One,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self::Output
[src]
impl<T> Downcast<PrimitiveArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
[src]
T: PolarsNumericType,
fn downcast_chunks(&self) -> Vec<&PrimitiveArray<T>>
[src]
impl<'a, T> From<&'a ChunkedArray<T>> for Vec<Option<T::Native>> where
T: ArrowPrimitiveType,
&'a ChunkedArray<T>: IntoIterator<Item = Option<T::Native>>,
ChunkedArray<T>: ChunkOps,
[src]
T: ArrowPrimitiveType,
&'a ChunkedArray<T>: IntoIterator<Item = Option<T::Native>>,
ChunkedArray<T>: ChunkOps,
fn from(ca: &'a ChunkedArray<T>) -> Self
[src]
impl<'a> From<&'a ChunkedArray<Utf8Type>> for Vec<String>
[src]
fn from(ca: &'a Utf8Chunked) -> Self
[src]
impl<T> FromIterator<Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: ArrowPrimitiveType,
[src]
T: ArrowPrimitiveType,
fn from_iter<I: IntoIterator<Item = Option<T::Native>>>(iter: I) -> Self
[src]
impl<T> HashJoin<T> for ChunkedArray<T> where
T: PolarsNumericType + Sync,
T::Native: Eq + Hash,
[src]
T: PolarsNumericType + Sync,
T::Native: Eq + Hash,
fn hash_join_inner(&self, other: &ChunkedArray<T>) -> Vec<(usize, usize)>
[src]
fn hash_join_left(&self, other: &ChunkedArray<T>) -> Vec<(usize, Option<usize>)>
[src]
fn hash_join_outer(
&self,
other: &ChunkedArray<T>
) -> HashSet<(Option<usize>, Option<usize>), FnvBuildHasher>
[src]
&self,
other: &ChunkedArray<T>
) -> HashSet<(Option<usize>, Option<usize>), FnvBuildHasher>
impl<'a, T> IntoIterator for &'a ChunkedArray<T> where
T: PolarsNumericType,
[src]
T: PolarsNumericType,
type Item = Option<T::Native>
The type of the elements being iterated over.
type IntoIter = Box<dyn ExactSizeIterator<Item = Option<T::Native>> + 'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, T> IntoTakeRandom<'a> for &'a ChunkedArray<T> where
T: PolarsNumericType,
[src]
T: PolarsNumericType,
impl<T, '_> Mul<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
[src]
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
type Output = ChunkedArray<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
impl<T> Mul<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
[src]
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
impl<T> Pow for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: ToPrimitive,
[src]
T: PolarsNumericType,
T::Native: ToPrimitive,
fn pow_f32(&self, exp: f32) -> Float32Chunked
[src]
fn pow_f64(&self, exp: f64) -> Float64Chunked
[src]
impl<T> Reverse<T> for ChunkedArray<T> where
T: PolarsNumericType,
ChunkedArray<T>: ChunkOps,
[src]
T: PolarsNumericType,
ChunkedArray<T>: ChunkOps,
fn reverse(&self) -> ChunkedArray<T>
[src]
impl<T, '_> Sub<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
[src]
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
type Output = ChunkedArray<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output
[src]
impl<T> Sub<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
[src]
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + Sub<Output = T::Native> + Mul<Output = T::Native> + Div<Output = T::Native> + Zero,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output
[src]
impl<T> Take for ChunkedArray<T> where
T: PolarsNumericType,
[src]
T: PolarsNumericType,
fn take(
&self,
indices: impl Iterator<Item = usize>,
capacity: Option<usize>
) -> Result<Self>
[src]
&self,
indices: impl Iterator<Item = usize>,
capacity: Option<usize>
) -> Result<Self>
fn take_opt(
&self,
indices: impl Iterator<Item = Option<usize>>,
capacity: Option<usize>
) -> Result<Self>
[src]
&self,
indices: impl Iterator<Item = Option<usize>>,
capacity: Option<usize>
) -> Result<Self>
impl<T> Unique<T> for ChunkedArray<T> where
T: PolarsIntegerType,
T::Native: Hash + Eq,
ChunkedArray<T>: ChunkOps,
[src]
T: PolarsIntegerType,
T::Native: Hash + Eq,
ChunkedArray<T>: ChunkOps,
impl<T, '_> Unique<T> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
T::Native: NumCast + ToPrimitive,
ChunkedArray<T>: ChunkOps,
[src]
T: PolarsNumericType,
T::Native: NumCast + ToPrimitive,
ChunkedArray<T>: ChunkOps,
fn unique(&self) -> ChunkedArray<T>
[src]
fn arg_unique(&self) -> Vec<usize>
[src]
impl<T> ValueCounts<T> for ChunkedArray<T> where
T: PolarsIntegerType,
T::Native: Hash + Eq,
ChunkedArray<T>: ChunkOps,
[src]
T: PolarsIntegerType,
T::Native: Hash + Eq,
ChunkedArray<T>: ChunkOps,
fn value_counts(
&self
) -> HashMap<Option<T::Native>, u32, BuildHasherDefault<FnvHasher>>
[src]
&self
) -> HashMap<Option<T::Native>, u32, BuildHasherDefault<FnvHasher>>
Auto Trait Implementations
impl<T> !RefUnwindSafe for ChunkedArray<T>
impl<T> Send for ChunkedArray<T> where
T: Send,
T: Send,
impl<T> Sync for ChunkedArray<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ChunkedArray<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for ChunkedArray<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,