F64SliceExt

Trait F64SliceExt 

Source
pub trait F64SliceExt: AsF64Slice {
Show 71 methods // Provided methods fn has_prefix(&self, prefix: impl AsF64Slice) -> bool { ... } fn has_suffix(&self, suffix: impl AsF64Slice) -> bool { ... } fn longest_prefix(&self, other: impl AsF64Slice) -> &[f64] { ... } fn longest_suffix(&self, other: impl AsF64Slice) -> &[f64] { ... } fn longest_prefix_lossy(&self, other: impl AsF64Slice) -> Cow<'_, [f64]> { ... } fn longest_suffix_lossy(&self, other: impl AsF64Slice) -> Cow<'_, [f64]> { ... } fn to_be_u8_vec(&self) -> Vec<u8> { ... } fn to_le_u8_vec(&self) -> Vec<u8> { ... } fn to_ne_u8_vec(&self) -> Vec<u8> { ... } fn to_be_u16_vec(&self) -> Vec<u16> { ... } fn to_le_u16_vec(&self) -> Vec<u16> { ... } fn to_ne_u16_vec(&self) -> Vec<u16> { ... } fn to_be_u32_vec(&self) -> Vec<u32> { ... } fn to_le_u32_vec(&self) -> Vec<u32> { ... } fn to_ne_u32_vec(&self) -> Vec<u32> { ... } fn to_be_usize_vec(&self) -> Vec<usize> { ... } fn to_le_usize_vec(&self) -> Vec<usize> { ... } fn to_ne_usize_vec(&self) -> Vec<usize> { ... } fn to_be_u64_vec(&self) -> Vec<u64> { ... } fn to_le_u64_vec(&self) -> Vec<u64> { ... } fn to_ne_u64_vec(&self) -> Vec<u64> { ... } fn to_be_u128_vec(&self) -> Vec<u128> { ... } fn to_le_u128_vec(&self) -> Vec<u128> { ... } fn to_ne_u128_vec(&self) -> Vec<u128> { ... } fn to_be_i8_vec(&self) -> Vec<i8> { ... } fn to_le_i8_vec(&self) -> Vec<i8> { ... } fn to_ne_i8_vec(&self) -> Vec<i8> { ... } fn to_be_i16_vec(&self) -> Vec<i16> { ... } fn to_le_i16_vec(&self) -> Vec<i16> { ... } fn to_ne_i16_vec(&self) -> Vec<i16> { ... } fn to_be_i32_vec(&self) -> Vec<i32> { ... } fn to_le_i32_vec(&self) -> Vec<i32> { ... } fn to_ne_i32_vec(&self) -> Vec<i32> { ... } fn to_be_i64_vec(&self) -> Vec<i64> { ... } fn to_le_i64_vec(&self) -> Vec<i64> { ... } fn to_ne_i64_vec(&self) -> Vec<i64> { ... } fn to_be_isize_vec(&self) -> Vec<isize> { ... } fn to_le_isize_vec(&self) -> Vec<isize> { ... } fn to_ne_isize_vec(&self) -> Vec<isize> { ... } fn to_be_i128_vec(&self) -> Vec<i128> { ... } fn to_le_i128_vec(&self) -> Vec<i128> { ... } fn to_ne_i128_vec(&self) -> Vec<i128> { ... } fn to_be_f32_vec(&self) -> Vec<f32> { ... } fn to_le_f32_vec(&self) -> Vec<f32> { ... } fn to_ne_f32_vec(&self) -> Vec<f32> { ... } fn to_u8_slice(&self) -> &[u8] { ... } fn to_u8_slice_lossy(&self) -> Cow<'_, [u8]> { ... } fn to_u16_slice_lossy(&self) -> Cow<'_, [u16]> { ... } fn to_u32_slice_lossy(&self) -> Cow<'_, [u32]> { ... } fn to_usize_slice_lossy(&self) -> Cow<'_, [usize]> { ... } fn to_u64_slice_lossy(&self) -> Cow<'_, [u64]> { ... } fn to_u128_slice_lossy(&self) -> Cow<'_, [u128]> { ... } fn to_i8_slice_lossy(&self) -> Cow<'_, [i8]> { ... } fn to_i16_slice_lossy(&self) -> Cow<'_, [i16]> { ... } fn to_i32_slice_lossy(&self) -> Cow<'_, [i32]> { ... } fn to_i64_slice_lossy(&self) -> Cow<'_, [i64]> { ... } fn to_isize_slice_lossy(&self) -> Cow<'_, [isize]> { ... } fn to_i128_slice_lossy(&self) -> Cow<'_, [i128]> { ... } fn to_f32_slice_lossy(&self) -> Cow<'_, [f32]> { ... } fn to_u16_slice(&self) -> &[u16] { ... } fn to_u32_slice(&self) -> &[u32] { ... } fn to_usize_slice(&self) -> &[usize] { ... } fn to_u64_slice(&self) -> &[u64] { ... } fn to_u128_slice(&self) -> &[u128] { ... } fn to_i8_slice(&self) -> &[i8] { ... } fn to_i16_slice(&self) -> &[i16] { ... } fn to_i32_slice(&self) -> &[i32] { ... } fn to_i64_slice(&self) -> &[i64] { ... } fn to_isize_slice(&self) -> &[isize] { ... } fn to_i128_slice(&self) -> &[i128] { ... } fn to_f32_slice(&self) -> &[f32] { ... }
}
Expand description

Extensions for f64 slice

Provided Methods§

Source

fn has_prefix(&self, prefix: impl AsF64Slice) -> bool

Returns whether the slice self begins with prefix.

Source

fn has_suffix(&self, suffix: impl AsF64Slice) -> bool

Returns whether the slice self ends with suffix.

Source

fn longest_prefix(&self, other: impl AsF64Slice) -> &[f64]

Finds the longest shared prefix

Source

fn longest_suffix(&self, other: impl AsF64Slice) -> &[f64]

Finds the longest shared suffix

Source

fn longest_prefix_lossy(&self, other: impl AsF64Slice) -> Cow<'_, [f64]>

Finds the longest shared prefix, return a Cow<’_, f64>.

Source

fn longest_suffix_lossy(&self, other: impl AsF64Slice) -> Cow<'_, [f64]>

Finds the longest shared suffix, return a Cow<’_, f64>.

Source

fn to_be_u8_vec(&self) -> Vec<u8>

Copy f64 slice to u8 vec in big-endian

Source

fn to_le_u8_vec(&self) -> Vec<u8>

Copy f64 slice to u8 vec in little-endian

Source

fn to_ne_u8_vec(&self) -> Vec<u8>

Copy f64 slice to u8 vec in native-endian

Source

fn to_be_u16_vec(&self) -> Vec<u16>

Copy f64 slice to u16 vec in big-endian

Source

fn to_le_u16_vec(&self) -> Vec<u16>

Copy f64 slice to u16 vec in little-endian

Source

fn to_ne_u16_vec(&self) -> Vec<u16>

Copy f64 slice to u16 vec in native-endian

Source

fn to_be_u32_vec(&self) -> Vec<u32>

Copy f64 slice to u32 vec in big-endian

Source

fn to_le_u32_vec(&self) -> Vec<u32>

Copy f64 slice to u32 vec in little-endian

Source

fn to_ne_u32_vec(&self) -> Vec<u32>

Copy f64 slice to u32 vec in native-endian

Source

fn to_be_usize_vec(&self) -> Vec<usize>

Copy f64 slice to usize vec in big-endian

Source

fn to_le_usize_vec(&self) -> Vec<usize>

Copy f64 slice to usize vec in little-endian

Source

fn to_ne_usize_vec(&self) -> Vec<usize>

Copy f64 slice to usize vec in native-endian

Source

fn to_be_u64_vec(&self) -> Vec<u64>

Copy f64 slice to u64 vec in big-endian

Source

fn to_le_u64_vec(&self) -> Vec<u64>

Copy f64 slice to u64 vec in little-endian

Source

fn to_ne_u64_vec(&self) -> Vec<u64>

Copy f64 slice to u64 vec in native-endian

Source

fn to_be_u128_vec(&self) -> Vec<u128>

Copy f64 slice to u128 vec in big-endian

Source

fn to_le_u128_vec(&self) -> Vec<u128>

Copy f64 slice to u128 vec in little-endian

Source

fn to_ne_u128_vec(&self) -> Vec<u128>

Copy f64 slice to u128 vec in native-endian

Source

fn to_be_i8_vec(&self) -> Vec<i8>

Copy f64 slice to i8 vec in big-endian

Source

fn to_le_i8_vec(&self) -> Vec<i8>

Copy f64 slice to i8 vec in little-endian

Source

fn to_ne_i8_vec(&self) -> Vec<i8>

Copy f64 slice to i8 vec in native-endian

Source

fn to_be_i16_vec(&self) -> Vec<i16>

Copy f64 slice to i16 vec in big-endian

Source

fn to_le_i16_vec(&self) -> Vec<i16>

Copy f64 slice to i16 vec in little-endian

Source

fn to_ne_i16_vec(&self) -> Vec<i16>

Copy f64 slice to i16 vec in native-endian

Source

fn to_be_i32_vec(&self) -> Vec<i32>

Copy f64 slice to i32 vec in big-endian

Source

fn to_le_i32_vec(&self) -> Vec<i32>

Copy f64 slice to i32 vec in little-endian

Source

fn to_ne_i32_vec(&self) -> Vec<i32>

Copy f64 slice to i32 vec in native-endian

Source

fn to_be_i64_vec(&self) -> Vec<i64>

Copy f64 slice to i64 vec in big-endian

Source

fn to_le_i64_vec(&self) -> Vec<i64>

Copy f64 slice to i64 vec in little-endian

Source

fn to_ne_i64_vec(&self) -> Vec<i64>

Copy f64 slice to i64 vec in native-endian

Source

fn to_be_isize_vec(&self) -> Vec<isize>

Copy f64 slice to isize vec in big-endian

Source

fn to_le_isize_vec(&self) -> Vec<isize>

Copy f64 slice to isize vec in little-endian

Source

fn to_ne_isize_vec(&self) -> Vec<isize>

Copy f64 slice to isize vec in native-endian

Source

fn to_be_i128_vec(&self) -> Vec<i128>

Copy f64 slice to i128 vec in big-endian

Source

fn to_le_i128_vec(&self) -> Vec<i128>

Copy f64 slice to i128 vec in little-endian

Source

fn to_ne_i128_vec(&self) -> Vec<i128>

Copy f64 slice to i128 vec in native-endian

Source

fn to_be_f32_vec(&self) -> Vec<f32>

Copy f64 slice to f32 vec in big-endian

Source

fn to_le_f32_vec(&self) -> Vec<f32>

Copy f64 slice to f32 vec in little-endian

Source

fn to_ne_f32_vec(&self) -> Vec<f32>

Copy f64 slice to f32 vec in native-endian

Source

fn to_u8_slice(&self) -> &[u8]

convert u16 slice to u8 slice

Source

fn to_u8_slice_lossy(&self) -> Cow<'_, [u8]>

Convert f64 slice to Cow<’_, u8> slice in native-endian(zero-copy)

Source

fn to_u16_slice_lossy(&self) -> Cow<'_, [u16]>

Convert f64 slice to Cow<’_, u16> slice in native-endian(zero-copy)

Source

fn to_u32_slice_lossy(&self) -> Cow<'_, [u32]>

Convert f64 slice to Cow<’_, u32> slice in native-endian(zero-copy)

Source

fn to_usize_slice_lossy(&self) -> Cow<'_, [usize]>

Convert f64 slice to Cow<’_, usize> slice in native-endian(zero-copy)

Source

fn to_u64_slice_lossy(&self) -> Cow<'_, [u64]>

Convert f64 slice to Cow<’_, u64> slice in native-endian(zero-copy)

Source

fn to_u128_slice_lossy(&self) -> Cow<'_, [u128]>

Convert f64 slice to Cow<’_, u128> slice in native-endian(zero-copy)

Source

fn to_i8_slice_lossy(&self) -> Cow<'_, [i8]>

Convert f64 slice to Cow<’_, i8> slice in native-endian(zero-copy)

Source

fn to_i16_slice_lossy(&self) -> Cow<'_, [i16]>

Convert f64 slice to Cow<’_, i16> slice in native-endian(zero-copy)

Source

fn to_i32_slice_lossy(&self) -> Cow<'_, [i32]>

Convert f64 slice to Cow<’_, i32> slice in native-endian(zero-copy)

Source

fn to_i64_slice_lossy(&self) -> Cow<'_, [i64]>

Convert f64 slice to Cow<’_, i64> slice in native-endian(zero-copy)

Source

fn to_isize_slice_lossy(&self) -> Cow<'_, [isize]>

Convert f64 slice to Cow<’_, isize> slice in native-endian(zero-copy)

Source

fn to_i128_slice_lossy(&self) -> Cow<'_, [i128]>

Convert f64 slice to Cow<’_, i128> slice in native-endian(zero-copy)

Source

fn to_f32_slice_lossy(&self) -> Cow<'_, [f32]>

Convert f64 slice to Cow<’_, f32> slice in native-endian(zero-copy)

Source

fn to_u16_slice(&self) -> &[u16]

Convert f64 slice to u16 slice in native-endian(zero-copy)

Source

fn to_u32_slice(&self) -> &[u32]

Convert f64 slice to u32 slice in native-endian(zero-copy)

Source

fn to_usize_slice(&self) -> &[usize]

Convert f64 slice to usize slice in native-endian(zero-copy)

Source

fn to_u64_slice(&self) -> &[u64]

Convert f64 slice to u64 slice in native-endian(zero-copy)

Source

fn to_u128_slice(&self) -> &[u128]

Convert f64 slice to u128 slice in native-endian(zero-copy)

Source

fn to_i8_slice(&self) -> &[i8]

Convert f64 slice to i8 slice in native-endian(zero-copy)

Source

fn to_i16_slice(&self) -> &[i16]

Convert f64 slice to i16 slice in native-endian(zero-copy)

Source

fn to_i32_slice(&self) -> &[i32]

Convert f64 slice to i32 slice in native-endian(zero-copy)

Source

fn to_i64_slice(&self) -> &[i64]

Convert f64 slice to i64 slice in native-endian(zero-copy)

Source

fn to_isize_slice(&self) -> &[isize]

Convert f64 slice to isize slice in native-endian(zero-copy)

Source

fn to_i128_slice(&self) -> &[i128]

Convert f64 slice to i128 slice in native-endian(zero-copy)

Source

fn to_f32_slice(&self) -> &[f32]

Convert f64 slice to f32 slice in native-endian(zero-copy)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl F64SliceExt for Box<[f64]>

Source§

impl F64SliceExt for Vec<f64>

Source§

impl<'a> F64SliceExt for &'a Box<[f64]>

Source§

impl<'a> F64SliceExt for &'a Vec<f64>

Source§

impl<'a> F64SliceExt for &'a [f64]

Source§

impl<'a> F64SliceExt for &'a mut Box<[f64]>

Source§

impl<'a> F64SliceExt for &'a mut Vec<f64>

Source§

impl<'a> F64SliceExt for &'a mut [f64]

Source§

impl<const N: usize> F64SliceExt for [f64; N]

Implementors§