pub struct ReducerConfig<'a> {
pub reserved_flags: &'a [&'a str],
}Expand description
How a consumer parameterizes the reduction.
Extracted from tapesctl, where the reserved list was a compile-time constant; each consumer’s subcommands define their own flags, so the list is theirs to declare.
Fields§
§reserved_flags: &'a [&'a str]Flag names the generated surface cannot hand to a cassette parameter,
because the consumer’s subcommand defines them itself. A colliding
parameter is presented as param-<flag>, prefixed again as many times
as it takes to clear the reserved set, and suffixed with a counter if
it then collides with a sibling; its wire name is untouched.
Trait Implementations§
Source§impl<'a> Clone for ReducerConfig<'a>
impl<'a> Clone for ReducerConfig<'a>
Source§fn clone(&self) -> ReducerConfig<'a>
fn clone(&self) -> ReducerConfig<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ReducerConfig<'a>
Source§impl<'a> Debug for ReducerConfig<'a>
impl<'a> Debug for ReducerConfig<'a>
Source§impl<'a> Default for ReducerConfig<'a>
impl<'a> Default for ReducerConfig<'a>
Source§fn default() -> ReducerConfig<'a>
fn default() -> ReducerConfig<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ReducerConfig<'a>
impl<'a> RefUnwindSafe for ReducerConfig<'a>
impl<'a> Send for ReducerConfig<'a>
impl<'a> Sync for ReducerConfig<'a>
impl<'a> Unpin for ReducerConfig<'a>
impl<'a> UnsafeUnpin for ReducerConfig<'a>
impl<'a> UnwindSafe for ReducerConfig<'a>
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