pub struct CommonHintFlags {
pub dir: Option<String>,
pub format: Option<String>,
pub hints: bool,
}Expand description
Common global flags captured once per command dispatch and threaded into
every HintContext. Avoids repeating the same three field assignments in
every match arm of run.rs.
Fields§
§dir: Option<String>--dir value when explicitly passed on the CLI; None when inherited
from .hyalo.toml (the hint can omit it and rely on config).
format: Option<String>--format value when explicitly passed on the CLI.
hints: boolWhether --hints was explicitly passed on the CLI.
Auto Trait Implementations§
impl Freeze for CommonHintFlags
impl RefUnwindSafe for CommonHintFlags
impl Send for CommonHintFlags
impl Sync for CommonHintFlags
impl Unpin for CommonHintFlags
impl UnsafeUnpin for CommonHintFlags
impl UnwindSafe for CommonHintFlags
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