pub struct FeatureGroupsBuilder { /* private fields */ }Expand description
Fluent builder for FeatureGroups.
Implementations§
Source§impl FeatureGroupsBuilder
impl FeatureGroupsBuilder
Sourcepub fn add(
self,
name: impl Into<String>,
indices: impl IntoIterator<Item = usize>,
) -> Self
pub fn add( self, name: impl Into<String>, indices: impl IntoIterator<Item = usize>, ) -> Self
Declare a new group. Builder calls are cheap; every failure
is surfaced later by Self::build.
Sourcepub fn build(self) -> RcfResult<FeatureGroups>
pub fn build(self) -> RcfResult<FeatureGroups>
Finalise the builder, validating every group.
§Errors
RcfError::InvalidConfigon an empty group name, an empty index slice, or duplicate group names.
Trait Implementations§
Source§impl Clone for FeatureGroupsBuilder
impl Clone for FeatureGroupsBuilder
Source§fn clone(&self) -> FeatureGroupsBuilder
fn clone(&self) -> FeatureGroupsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeatureGroupsBuilder
impl Debug for FeatureGroupsBuilder
Source§impl Default for FeatureGroupsBuilder
impl Default for FeatureGroupsBuilder
Source§fn default() -> FeatureGroupsBuilder
fn default() -> FeatureGroupsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FeatureGroupsBuilder
impl RefUnwindSafe for FeatureGroupsBuilder
impl Send for FeatureGroupsBuilder
impl Sync for FeatureGroupsBuilder
impl Unpin for FeatureGroupsBuilder
impl UnsafeUnpin for FeatureGroupsBuilder
impl UnwindSafe for FeatureGroupsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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