pub struct ConfigRegion {
pub form: ConfigForm,
pub global: bool,
pub system: bool,
pub lists: bool,
pub wrapper: Vec<WrapperOccurrence>,
}Expand description
What:
Facts of one git config region.
Vec<WrapperOccurrence> is an owned growable
list of wrapper-only flags.
Why:
The require-root decision reads the scope and the listing action;
the caller
removes its wrapper-only flags by the positions reported here.
In TS you’d write (pseudocode):
type ConfigRegion = { form: ConfigForm; global: boolean; system: boolean; lists: boolean; wrapper: WrapperOccurrence[] };Fields§
§form: ConfigFormThe form Git dispatches to.
global: bool--global is on after every use was applied.
system: bool--system is on after every use was applied.
lists: boolThe command lists variables:
git config list,
or -l/--list without a
subcommand word.
wrapper: Vec<WrapperOccurrence>Wrapper-only flags in option position;
token indexes the region.
Trait Implementations§
Source§impl Clone for ConfigRegion
impl Clone for ConfigRegion
Source§impl Debug for ConfigRegion
impl Debug for ConfigRegion
impl Eq for ConfigRegion
Source§impl PartialEq for ConfigRegion
impl PartialEq for ConfigRegion
impl StructuralPartialEq for ConfigRegion
Auto Trait Implementations§
impl Freeze for ConfigRegion
impl RefUnwindSafe for ConfigRegion
impl Send for ConfigRegion
impl Sync for ConfigRegion
impl Unpin for ConfigRegion
impl UnsafeUnpin for ConfigRegion
impl UnwindSafe for ConfigRegion
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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