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
sourceimpl CargoFmtStrategy
impl CargoFmtStrategy
pub fn from_opts(opts: &Opts) -> CargoFmtStrategy
Trait Implementations
sourceimpl Debug for CargoFmtStrategy
impl Debug for CargoFmtStrategy
sourceimpl PartialEq<CargoFmtStrategy> for CargoFmtStrategy
impl PartialEq<CargoFmtStrategy> for CargoFmtStrategy
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn 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