pub struct JITEnabledArray<T, A> { /* private fields */ }
Expand description
An array that supports JIT compilation
Implementations§
Trait Implementations§
Source§impl<T, A> ArrayProtocol for JITEnabledArray<T, A>
impl<T, A> ArrayProtocol for JITEnabledArray<T, A>
Source§fn array_function(
&self,
func: &ArrayFunction,
types: &[TypeId],
args: &[Box<dyn Any>],
kwargs: &HashMap<String, Box<dyn Any>>,
) -> Result<Box<dyn Any>, NotImplemented>
fn array_function( &self, func: &ArrayFunction, types: &[TypeId], args: &[Box<dyn Any>], kwargs: &HashMap<String, Box<dyn Any>>, ) -> Result<Box<dyn Any>, NotImplemented>
Implementation of the array protocol. Read more
Source§fn shape(&self) -> &[usize]
fn shape(&self) -> &[usize]
Get the shape of the array (default implementation returns empty slice)
Source§fn box_clone(&self) -> Box<dyn ArrayProtocol>
fn box_clone(&self) -> Box<dyn ArrayProtocol>
Clone this array protocol object.
Source§impl<T, A: Clone> Clone for JITEnabledArray<T, A>
impl<T, A: Clone> Clone for JITEnabledArray<T, A>
Source§impl<T, A> JITArray for JITEnabledArray<T, A>
impl<T, A> JITArray for JITEnabledArray<T, A>
Source§fn compile(&self, expression: &str) -> CoreResult<Box<dyn JITFunction>>
fn compile(&self, expression: &str) -> CoreResult<Box<dyn JITFunction>>
Compile an expression to be evaluated on this array.
Source§fn supports_jit(&self) -> bool
fn supports_jit(&self) -> bool
Check if JIT compilation is supported for this array type.
Auto Trait Implementations§
impl<T, A> Freeze for JITEnabledArray<T, A>where
A: Freeze,
impl<T, A> RefUnwindSafe for JITEnabledArray<T, A>where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, A> Send for JITEnabledArray<T, A>
impl<T, A> Sync for JITEnabledArray<T, A>
impl<T, A> Unpin for JITEnabledArray<T, A>
impl<T, A> UnwindSafe for JITEnabledArray<T, A>where
A: UnwindSafe,
T: UnwindSafe,
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
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