Skip to main content

NativeSlices

Struct NativeSlices 

Source
pub struct NativeSlices<K, const N: usize> { /* private fields */ }
Expand description

A formula’s native slice bodies. Real and integer variants run the body at their dtype (f32 for f16). Complex variants keep the real-input shortcut and final validity check at the map boundary; an absent body uses the scalar formula.

Implementations§

Source§

impl<K, const N: usize> NativeSlices<K, N>

Source

pub fn single( &self, ) -> Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f32>; N], usize, &mut [MaybeUninit<f32>]) -> bool>

Source

pub fn double( &self, ) -> Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f64>; N], usize, &mut [MaybeUninit<f64>]) -> bool>

Source

pub fn byte( &self, ) -> Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, u8>; N], usize, &mut [MaybeUninit<u8>]) -> bool>

Source

pub fn short( &self, ) -> Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i16>; N], usize, &mut [MaybeUninit<i16>]) -> bool>

Source

pub fn int( &self, ) -> Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i32>; N], usize, &mut [MaybeUninit<i32>]) -> bool>

Source

pub fn long( &self, ) -> Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i64>; N], usize, &mut [MaybeUninit<i64>]) -> bool>

Source

pub fn complex_single( &self, ) -> Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f32>>; N], usize, &mut [MaybeUninit<Complex<f32>>])>

Source

pub fn complex_double( &self, ) -> Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f64>>; N], usize, &mut [MaybeUninit<Complex<f64>>])>

Auto Trait Implementations§

§

impl<K, const N: usize> Forget for NativeSlices<K, N>

§

impl<K, const N: usize> Freeze for NativeSlices<K, N>
where Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f32>; N], usize, &mut [MaybeUninit<f32>]) -> bool>: Freeze, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f64>; N], usize, &mut [MaybeUninit<f64>]) -> bool>: Freeze, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, u8>; N], usize, &mut [MaybeUninit<u8>]) -> bool>: Freeze, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i16>; N], usize, &mut [MaybeUninit<i16>]) -> bool>: Freeze, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i32>; N], usize, &mut [MaybeUninit<i32>]) -> bool>: Freeze, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i64>; N], usize, &mut [MaybeUninit<i64>]) -> bool>: Freeze, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f32>>; N], usize, &mut [MaybeUninit<Complex<f32>>])>: Freeze, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f64>>; N], usize, &mut [MaybeUninit<Complex<f64>>])>: Freeze,

§

impl<K, const N: usize> RefUnwindSafe for NativeSlices<K, N>
where Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f32>; N], usize, &mut [MaybeUninit<f32>]) -> bool>: RefUnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f64>; N], usize, &mut [MaybeUninit<f64>]) -> bool>: RefUnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, u8>; N], usize, &mut [MaybeUninit<u8>]) -> bool>: RefUnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i16>; N], usize, &mut [MaybeUninit<i16>]) -> bool>: RefUnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i32>; N], usize, &mut [MaybeUninit<i32>]) -> bool>: RefUnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i64>; N], usize, &mut [MaybeUninit<i64>]) -> bool>: RefUnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f32>>; N], usize, &mut [MaybeUninit<Complex<f32>>])>: RefUnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f64>>; N], usize, &mut [MaybeUninit<Complex<f64>>])>: RefUnwindSafe,

§

impl<K, const N: usize> Send for NativeSlices<K, N>
where Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f32>; N], usize, &mut [MaybeUninit<f32>]) -> bool>: Send, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f64>; N], usize, &mut [MaybeUninit<f64>]) -> bool>: Send, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, u8>; N], usize, &mut [MaybeUninit<u8>]) -> bool>: Send, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i16>; N], usize, &mut [MaybeUninit<i16>]) -> bool>: Send, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i32>; N], usize, &mut [MaybeUninit<i32>]) -> bool>: Send, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i64>; N], usize, &mut [MaybeUninit<i64>]) -> bool>: Send, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f32>>; N], usize, &mut [MaybeUninit<Complex<f32>>])>: Send, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f64>>; N], usize, &mut [MaybeUninit<Complex<f64>>])>: Send,

§

impl<K, const N: usize> Sync for NativeSlices<K, N>
where Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f32>; N], usize, &mut [MaybeUninit<f32>]) -> bool>: Sync, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f64>; N], usize, &mut [MaybeUninit<f64>]) -> bool>: Sync, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, u8>; N], usize, &mut [MaybeUninit<u8>]) -> bool>: Sync, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i16>; N], usize, &mut [MaybeUninit<i16>]) -> bool>: Sync, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i32>; N], usize, &mut [MaybeUninit<i32>]) -> bool>: Sync, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i64>; N], usize, &mut [MaybeUninit<i64>]) -> bool>: Sync, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f32>>; N], usize, &mut [MaybeUninit<Complex<f32>>])>: Sync, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f64>>; N], usize, &mut [MaybeUninit<Complex<f64>>])>: Sync,

§

impl<K, const N: usize> Unpin for NativeSlices<K, N>
where Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f32>; N], usize, &mut [MaybeUninit<f32>]) -> bool>: Unpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f64>; N], usize, &mut [MaybeUninit<f64>]) -> bool>: Unpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, u8>; N], usize, &mut [MaybeUninit<u8>]) -> bool>: Unpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i16>; N], usize, &mut [MaybeUninit<i16>]) -> bool>: Unpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i32>; N], usize, &mut [MaybeUninit<i32>]) -> bool>: Unpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i64>; N], usize, &mut [MaybeUninit<i64>]) -> bool>: Unpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f32>>; N], usize, &mut [MaybeUninit<Complex<f32>>])>: Unpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f64>>; N], usize, &mut [MaybeUninit<Complex<f64>>])>: Unpin,

§

impl<K, const N: usize> UnsafeUnpin for NativeSlices<K, N>
where Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f32>; N], usize, &mut [MaybeUninit<f32>]) -> bool>: UnsafeUnpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f64>; N], usize, &mut [MaybeUninit<f64>]) -> bool>: UnsafeUnpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, u8>; N], usize, &mut [MaybeUninit<u8>]) -> bool>: UnsafeUnpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i16>; N], usize, &mut [MaybeUninit<i16>]) -> bool>: UnsafeUnpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i32>; N], usize, &mut [MaybeUninit<i32>]) -> bool>: UnsafeUnpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i64>; N], usize, &mut [MaybeUninit<i64>]) -> bool>: UnsafeUnpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f32>>; N], usize, &mut [MaybeUninit<Complex<f32>>])>: UnsafeUnpin, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f64>>; N], usize, &mut [MaybeUninit<Complex<f64>>])>: UnsafeUnpin,

§

impl<K, const N: usize> UnwindSafe for NativeSlices<K, N>
where Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f32>; N], usize, &mut [MaybeUninit<f32>]) -> bool>: UnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, f64>; N], usize, &mut [MaybeUninit<f64>]) -> bool>: UnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, u8>; N], usize, &mut [MaybeUninit<u8>]) -> bool>: UnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i16>; N], usize, &mut [MaybeUninit<i16>]) -> bool>: UnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i32>; N], usize, &mut [MaybeUninit<i32>]) -> bool>: UnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, i64>; N], usize, &mut [MaybeUninit<i64>]) -> bool>: UnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f32>>; N], usize, &mut [MaybeUninit<Complex<f32>>])>: UnwindSafe, Option<fn(&K, &NativeOps<rustymath_core::::facts::Slice::{constant#0}>, [Arg<'_, Complex<f64>>; N], usize, &mut [MaybeUninit<Complex<f64>>])>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.