pub enum Map {
Kernel(Kernel, Settings),
Convert(Conversion, Settings, bool),
}Expand description
A resolved elementwise call. Kind selection is complete before this is executed.
Variants§
Implementations§
Source§impl Map
impl Map
pub fn arity(&self) -> usize
Sourcepub fn run<'a, 'b>(
&self,
inputs: &[Read<'_>],
range: Range<usize>,
scratch: &'a mut Scratch,
output: MapOutput<'a, 'b>,
) -> Result<(), Error>
pub fn run<'a, 'b>( &self, inputs: &[Read<'_>], range: Range<usize>, scratch: &'a mut Scratch, output: MapOutput<'a, 'b>, ) -> Result<(), Error>
Appends every result, including initialized fallback items on a numerical error.
Errors are execution failures, not a pre-write refusal to handle the call.
Both variants follow crate::error::checked: an enclosing checked scope owns recorded
numerical failures. Under an active error slot, Ok alone does not establish success.
Discard private outputs when that scope fails; neither Err nor a recorded failure is a route refusal.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Map
impl !UnwindSafe for Map
impl Forget for Map
impl Freeze for Map
impl Send for Map
impl Sync for Map
impl Unpin for Map
impl UnsafeUnpin for Map
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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