pub enum Strategy {
Generic,
Bazel,
CargoToml,
Gitignore,
RustDeriveAlphabetical,
RustDeriveCanonical,
}Expand description
Available sorting strategies.
Strategy values describe how process_lines will sort a file.
Variants§
Generic
Generic text sorting activated by the # Keep sorted comment.
Bazel
Sorting for Bazel BUILD and .bzl files.
CargoToml
Sorting for the dependency sections of Cargo.toml.
Gitignore
Sorting for .gitignore and CODEOWNERS files.
RustDeriveAlphabetical
Alphabetical ordering for #[derive(...)] attributes in Rust code.
RustDeriveCanonical
Canonical ordering for #[derive(...)] attributes in Rust code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnwindSafe for Strategy
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