pub struct ChunkInOut<P, const Q: usize, const R: usize>(pub P);Expand description
Chunked input and output
Adapt a [X; Q] -> [Y; R] processor to [X; N = Q*I]->[Y; M = R*I] for any I
by flattening and re-chunking input and output.
Tuple Fields§
§0: PTrait Implementations§
Source§impl<P: Clone, const Q: usize, const R: usize> Clone for ChunkInOut<P, Q, R>
impl<P: Clone, const Q: usize, const R: usize> Clone for ChunkInOut<P, Q, R>
Source§fn clone(&self) -> ChunkInOut<P, Q, R>
fn clone(&self) -> ChunkInOut<P, Q, R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: Default, const Q: usize, const R: usize> Default for ChunkInOut<P, Q, R>
impl<P: Default, const Q: usize, const R: usize> Default for ChunkInOut<P, Q, R>
Source§fn default() -> ChunkInOut<P, Q, R>
fn default() -> ChunkInOut<P, Q, R>
Returns the “default value” for a type. Read more
Source§impl<C: SplitInplace<[X; 1], S>, S, X: Copy, const N: usize> SplitInplace<[X; N], S> for ChunkInOut<C, 1, 1>
impl<C: SplitInplace<[X; 1], S>, S, X: Copy, const N: usize> SplitInplace<[X; N], S> for ChunkInOut<C, 1, 1>
Source§impl<C, S, X: Copy, Y: Default + Copy, const Q: usize, const N: usize, const R: usize, const M: usize> SplitProcess<[X; N], [Y; M], S> for ChunkInOut<C, Q, R>
impl<C, S, X: Copy, Y: Default + Copy, const Q: usize, const N: usize, const R: usize, const M: usize> SplitProcess<[X; N], [Y; M], S> for ChunkInOut<C, Q, R>
impl<P: Copy, const Q: usize, const R: usize> Copy for ChunkInOut<P, Q, R>
Auto Trait Implementations§
impl<P, const Q: usize, const R: usize> Freeze for ChunkInOut<P, Q, R>where
P: Freeze,
impl<P, const Q: usize, const R: usize> RefUnwindSafe for ChunkInOut<P, Q, R>where
P: RefUnwindSafe,
impl<P, const Q: usize, const R: usize> Send for ChunkInOut<P, Q, R>where
P: Send,
impl<P, const Q: usize, const R: usize> Sync for ChunkInOut<P, Q, R>where
P: Sync,
impl<P, const Q: usize, const R: usize> Unpin for ChunkInOut<P, Q, R>where
P: Unpin,
impl<P, const Q: usize, const R: usize> UnwindSafe for ChunkInOut<P, Q, R>where
P: 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