pub trait IntoGroupOperand<D: VeScalar, Mapping: M> {
// Required method
fn into_group_operand(self) -> GroupOperand<D, Mapping>;
}Expand description
Trait for converting various types into a group operand.
Uses Into<VeBranchOperand> blanket impl for automatic conversion from
types that implement From for VeBranchOperand (i32, f32, Stash, etc.).
§Supported types
()- skip operation for this groupi32,f32- constant value (viaInto<VeBranchOperand>)Stash- stash read marker (viaInto<VeBranchOperand>)StashOperand<D>- stash with branch validity (viaInto<VeBranchOperand>)VeBranchOperand<D, Mapping>- explicit operand (viaInto<VeBranchOperand>)Option<VeBranchOperand<D, Mapping>>- pass through
Required Methods§
Sourcefn into_group_operand(self) -> GroupOperand<D, Mapping>
fn into_group_operand(self) -> GroupOperand<D, Mapping>
Converts into a GroupOperand with the specified mapping.
Implementations on Foreign Types§
Source§impl<D: VeScalar, Mapping: M> IntoGroupOperand<D, Mapping> for Option<VeBranchOperand<D, Mapping>>
Option<VeBranchOperand<D, Mapping>> passes through.
impl<D: VeScalar, Mapping: M> IntoGroupOperand<D, Mapping> for Option<VeBranchOperand<D, Mapping>>
Option<VeBranchOperand<D, Mapping>> passes through.
fn into_group_operand(self) -> GroupOperand<D, Mapping>
Source§impl<D: VeScalar, Mapping: M> IntoGroupOperand<D, Mapping> for ()
() represents skipping the operation for this group.
impl<D: VeScalar, Mapping: M> IntoGroupOperand<D, Mapping> for ()
() represents skipping the operation for this group.
fn into_group_operand(self) -> GroupOperand<D, Mapping>
Implementors§
impl<T, D: VeScalar, Mapping: M> IntoGroupOperand<D, Mapping> for Twhere
T: Into<VeBranchOperand<D, Mapping>>,
Blanket impl: any type that implements Into<VeBranchOperand> automatically
implements IntoGroupOperand by wrapping in Some.