Enum cargo_fmt::CargoFmtStrategy
source · pub enum CargoFmtStrategy {
All,
Some(Vec<String>),
Root,
}
Variants§
All
Format every packages and dependencies.
Some(Vec<String>)
Format packages that are specified by the command line argument.
Root
Format the root packages only.
Implementations§
source§impl CargoFmtStrategy
impl CargoFmtStrategy
pub fn from_opts(opts: &Opts) -> CargoFmtStrategy
Trait Implementations§
source§impl Debug for CargoFmtStrategy
impl Debug for CargoFmtStrategy
source§impl PartialEq<CargoFmtStrategy> for CargoFmtStrategy
impl PartialEq<CargoFmtStrategy> for CargoFmtStrategy
source§fn eq(&self, other: &CargoFmtStrategy) -> bool
fn eq(&self, other: &CargoFmtStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CargoFmtStrategy
impl StructuralEq for CargoFmtStrategy
impl StructuralPartialEq for CargoFmtStrategy
Auto Trait Implementations§
impl RefUnwindSafe for CargoFmtStrategy
impl Send for CargoFmtStrategy
impl Sync for CargoFmtStrategy
impl Unpin for CargoFmtStrategy
impl UnwindSafe for CargoFmtStrategy
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
All
: 0 bytesSome
: 24 bytesRoot
: 0 bytes