LookupTable2D

Struct LookupTable2D 

Source
pub struct LookupTable2D<Axis1, Axis2, Dep>
where Axis1: AxisImpl, Axis2: AxisImpl,
{ /* private fields */ }

Implementations§

Source§

impl<Indep1, Search1, LowerBound1, UpperBound1, Indep2, Search2, LowerBound2, UpperBound2, Dep> LookupTable2D<Axis<Indep1, Search1, LowerBound1, UpperBound1>, Axis<Indep2, Search2, LowerBound2, UpperBound2>, Dep>
where Indep1: PartialOrd, Indep2: PartialOrd,

Source

pub fn new( indep1: Vec<Indep1>, search1: Search1, indep2: Vec<Indep2>, search2: Search2, dep: Array2<Dep>, ) -> Result<Self, Error>

Source§

impl<Indep1, Search1, LowerBound1, UpperBound1, Indep2, Search2, LowerBound2, UpperBound2, Dep> LookupTable2D<Axis<Indep1, Search1, LowerBound1, UpperBound1>, Axis<Indep2, Search2, LowerBound2, UpperBound2>, Dep>
where Search1: Search<Indep1>, Search2: Search<Indep2>, Dep: Copy + Sub<Dep, Output = Dep> + Div<Indep1, Output = Dep> + Mul<Indep1, Output = Dep> + Mul<Indep2, Output = Dep> + Add<Dep, Output = Dep> + Debug, Indep1: Copy + Sub<Indep1, Output = Indep1> + PartialOrd + Div<Indep1, Output = Indep1> + Debug, Indep2: Copy + Sub<Indep2, Output = Indep2> + PartialOrd + Div<Indep2, Output = Indep2> + Debug, LowerBound1: Bound<Indep1>, UpperBound1: Bound<Indep1>, LowerBound2: Bound<Indep2>, UpperBound2: Bound<Indep2>,

Source

pub fn lookup(&self, x: Indep1, y: Indep2) -> Dep

Auto Trait Implementations§

§

impl<Axis1, Axis2, Dep> Freeze for LookupTable2D<Axis1, Axis2, Dep>
where <Axis1 as AxisImpl>::Search: Freeze, <Axis2 as AxisImpl>::Search: Freeze,

§

impl<Axis1, Axis2, Dep> RefUnwindSafe for LookupTable2D<Axis1, Axis2, Dep>
where <Axis1 as AxisImpl>::Search: RefUnwindSafe, <Axis2 as AxisImpl>::Search: RefUnwindSafe, <Axis1 as AxisImpl>::Indep: RefUnwindSafe, <Axis2 as AxisImpl>::Indep: RefUnwindSafe, Dep: RefUnwindSafe,

§

impl<Axis1, Axis2, Dep> Send for LookupTable2D<Axis1, Axis2, Dep>
where <Axis1 as AxisImpl>::Search: Send, <Axis2 as AxisImpl>::Search: Send, Dep: Send, <Axis1 as AxisImpl>::Indep: Send, <Axis2 as AxisImpl>::Indep: Send,

§

impl<Axis1, Axis2, Dep> Sync for LookupTable2D<Axis1, Axis2, Dep>
where <Axis1 as AxisImpl>::Search: Sync, <Axis2 as AxisImpl>::Search: Sync, Dep: Sync, <Axis1 as AxisImpl>::Indep: Sync, <Axis2 as AxisImpl>::Indep: Sync,

§

impl<Axis1, Axis2, Dep> Unpin for LookupTable2D<Axis1, Axis2, Dep>
where <Axis1 as AxisImpl>::Search: Unpin, <Axis2 as AxisImpl>::Search: Unpin, <Axis1 as AxisImpl>::Indep: Unpin, <Axis2 as AxisImpl>::Indep: Unpin,

§

impl<Axis1, Axis2, Dep> UnwindSafe for LookupTable2D<Axis1, Axis2, Dep>
where <Axis1 as AxisImpl>::Search: UnwindSafe, <Axis2 as AxisImpl>::Search: UnwindSafe, Dep: RefUnwindSafe, <Axis1 as AxisImpl>::Indep: UnwindSafe, <Axis2 as AxisImpl>::Indep: 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<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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.