Enum cargo_fmt::CargoFmtStrategy
source · 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
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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