pub struct QueryAnswerPair<T, const WIDTH: usize> {
pub input: [T; WIDTH],
pub output: [T; WIDTH],
}Fields§
§input: [T; WIDTH]§output: [T; WIDTH]Implementations§
Source§impl<T, const WIDTH: usize> QueryAnswerPair<T, WIDTH>
impl<T, const WIDTH: usize> QueryAnswerPair<T, WIDTH>
pub const fn new(input: [T; WIDTH], output: [T; WIDTH]) -> Self
Trait Implementations§
Source§impl<T: Clone, const WIDTH: usize> Clone for QueryAnswerPair<T, WIDTH>
impl<T: Clone, const WIDTH: usize> Clone for QueryAnswerPair<T, WIDTH>
Source§fn clone(&self) -> QueryAnswerPair<T, WIDTH>
fn clone(&self) -> QueryAnswerPair<T, WIDTH>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Eq, const WIDTH: usize> Eq for QueryAnswerPair<T, WIDTH>
impl<T: PartialEq, const WIDTH: usize> StructuralPartialEq for QueryAnswerPair<T, WIDTH>
Auto Trait Implementations§
impl<T, const WIDTH: usize> Freeze for QueryAnswerPair<T, WIDTH>where
[T; WIDTH]: Freeze,
impl<T, const WIDTH: usize> RefUnwindSafe for QueryAnswerPair<T, WIDTH>where
[T; WIDTH]: RefUnwindSafe,
impl<T, const WIDTH: usize> Send for QueryAnswerPair<T, WIDTH>where
[T; WIDTH]: Send,
impl<T, const WIDTH: usize> Sync for QueryAnswerPair<T, WIDTH>where
[T; WIDTH]: Sync,
impl<T, const WIDTH: usize> Unpin for QueryAnswerPair<T, WIDTH>where
[T; WIDTH]: Unpin,
impl<T, const WIDTH: usize> UnsafeUnpin for QueryAnswerPair<T, WIDTH>where
[T; WIDTH]: UnsafeUnpin,
impl<T, const WIDTH: usize> UnwindSafe for QueryAnswerPair<T, WIDTH>where
[T; WIDTH]: 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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