pub struct VectorMergeBlock<O, I>where
I: Pass + Mergeable<O>,{
pub data: BlockData,
/* private fields */
}Expand description
Merges vectors and scalars into a single vector.
Vectors are flattened before merging, and the output is a 1xN matrix where N is the sum of the rows*cols of
the inputs. Currently implemented for up to 8 Scalar or Matrix inputs.
Generic arguments:
- <O>: The output type of the block
- <I>: A tuple of inputs that will be merged into the output
Fields§
§data: BlockDataTrait Implementations§
Source§impl<O, I> Default for VectorMergeBlock<O, I>
impl<O, I> Default for VectorMergeBlock<O, I>
Source§impl<O, I> ProcessBlock for VectorMergeBlock<O, I>
impl<O, I> ProcessBlock for VectorMergeBlock<O, I>
Auto Trait Implementations§
impl<O, I> Freeze for VectorMergeBlock<O, I>where
<I as Mergeable<O>>::Output: Freeze,
impl<O, I> RefUnwindSafe for VectorMergeBlock<O, I>where
<I as Mergeable<O>>::Output: RefUnwindSafe,
I: RefUnwindSafe,
impl<O, I> Send for VectorMergeBlock<O, I>
impl<O, I> Sync for VectorMergeBlock<O, I>
impl<O, I> Unpin for VectorMergeBlock<O, I>
impl<O, I> UnsafeUnpin for VectorMergeBlock<O, I>where
<I as Mergeable<O>>::Output: UnsafeUnpin,
impl<O, I> UnwindSafe for VectorMergeBlock<O, I>where
<I as Mergeable<O>>::Output: UnwindSafe,
I: 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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.