pub struct BitwiseOperatorBlock<T>{
pub data: BlockData,
/* private fields */
}Expand description
Performs a bitwise operation on the input values.
Float values are transformed to integers using a floor operation before
the bitwise operation is applied, and then casted back to float before being returned.
This block accepts 2-8 inputs, they must all be the same size/type.
The operation is applied component wise to each element if the input is a matrix.
Fields§
§data: BlockDataTrait Implementations§
Source§impl<T> Default for BitwiseOperatorBlock<T>
impl<T> Default for BitwiseOperatorBlock<T>
Source§impl<T> ProcessBlock for BitwiseOperatorBlock<T>
impl<T> ProcessBlock for BitwiseOperatorBlock<T>
Auto Trait Implementations§
impl<T> Freeze for BitwiseOperatorBlock<T>where
<T as Apply>::Output: Freeze,
impl<T> RefUnwindSafe for BitwiseOperatorBlock<T>where
<T as Apply>::Output: RefUnwindSafe,
impl<T> Send for BitwiseOperatorBlock<T>where
<T as Apply>::Output: Send,
impl<T> Sync for BitwiseOperatorBlock<T>where
<T as Apply>::Output: Sync,
impl<T> Unpin for BitwiseOperatorBlock<T>where
<T as Apply>::Output: Unpin,
impl<T> UnsafeUnpin for BitwiseOperatorBlock<T>where
<T as Apply>::Output: UnsafeUnpin,
impl<T> UnwindSafe for BitwiseOperatorBlock<T>where
<T as Apply>::Output: 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.