pub struct FeatureCombinator { /* private fields */ }Expand description
Provides the way to group multiple features having more fine grained control over result.
Implementations§
Source§impl FeatureCombinator
impl FeatureCombinator
Sourcepub fn add_feature(self, feature: Feature) -> Self
pub fn add_feature(self, feature: Feature) -> Self
Adds feature for combination.
Sourcepub fn add_features(self, features: &[Feature]) -> Self
pub fn add_features(self, features: &[Feature]) -> Self
Adds many features for combination.
Sourcepub fn set_objective_combinator<F>(self, objective_combinator: F) -> Self
pub fn set_objective_combinator<F>(self, objective_combinator: F) -> Self
Sets a custom objective combinator logic.
Sourcepub fn combine(self) -> Result<Feature, GenericError>
pub fn combine(self) -> Result<Feature, GenericError>
Builds single feature for many.
Trait Implementations§
Source§impl Default for FeatureCombinator
impl Default for FeatureCombinator
Source§fn default() -> FeatureCombinator
fn default() -> FeatureCombinator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FeatureCombinator
impl !RefUnwindSafe for FeatureCombinator
impl !Send for FeatureCombinator
impl !Sync for FeatureCombinator
impl Unpin for FeatureCombinator
impl UnsafeUnpin for FeatureCombinator
impl !UnwindSafe for FeatureCombinator
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more