drone_macros_core

Trait CfgCondExt

Source
pub trait CfgCondExt<T: Clone> {
    // Required method
    fn transpose(self) -> Vec<(CfgCond, Vec<T>)>;
}
Expand description

CfgCond helper extension trait for slices.

Required Methods§

Source

fn transpose(self) -> Vec<(CfgCond, Vec<T>)>

Converts a sequence of T into a sequence of combinations of T for each possible condition.

Implementations on Foreign Types§

Source§

impl<T: Clone> CfgCondExt<T> for &[(CfgCond, T)]

Source§

fn transpose(self) -> Vec<(CfgCond, Vec<T>)>

Implementors§