pub struct HouseRules {
pub fix: bool,
pub only_diffed: bool,
pub files: Vec<PathBuf>,
pub skip_copyright: bool,
pub skip_autogen_comment: bool,
pub skip_package_info: bool,
pub skip_trailing_newline: bool,
pub skip_crate_name: bool,
pub skip_repr_packed: bool,
pub skip_cfg_target_arch: bool,
pub skip_unsafe_code_comment: bool,
}Fields§
§fix: boolAttempt to fix formatting issues
only_diffed: boolOnly run checks on files that are currently diffed
files: Vec<PathBuf>A list of files to check
If no files were provided, all files in-tree will be checked
skip_copyright: boolDon’t run the copyright header check
skip_autogen_comment: boolDon’t run the autogenerated Cargo.toml “see more keys” comment check
skip_package_info: boolDon’t run the Cargo.toml author and version field checks
skip_trailing_newline: boolDon’t run the trailing newline check
skip_crate_name: boolDon’t run the crate name check
skip_repr_packed: boolDon’t run the #[repr(packed)] check
skip_cfg_target_arch: boolDon’t run the #[cfg(target_arch)] check
skip_unsafe_code_comment: boolDon’t run the #[expect(unsafe_code)] comment check
Implementations§
Source§impl HouseRules
impl HouseRules
Sourcepub fn all_passes(fix: bool, only_diffed: bool) -> HouseRules
pub fn all_passes(fix: bool, only_diffed: bool) -> HouseRules
Initialize HouseRules with all passes enabled
Trait Implementations§
Source§impl Args for HouseRules
impl Args for HouseRules
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl CommandFactory for HouseRules
impl CommandFactory for HouseRules
Source§impl FromArgMatches for HouseRules
impl FromArgMatches for HouseRules
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for HouseRules
impl Parser for HouseRules
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, [exit][Error::exit] on error.
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, [exit][Error::exit] on error. Read more
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
Auto Trait Implementations§
impl Freeze for HouseRules
impl RefUnwindSafe for HouseRules
impl Send for HouseRules
impl Sync for HouseRules
impl Unpin for HouseRules
impl UnwindSafe for HouseRules
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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