pub struct FeatureOpts { /* private fields */ }
Expand description
Options for how the feature resolver works.
Implementations
sourceimpl FeatureOpts
impl FeatureOpts
pub fn new(
ws: &Workspace<'_>,
has_dev_units: HasDevUnits,
force_all_targets: ForceAllTargets
) -> CargoResult<FeatureOpts>
sourcepub fn new_behavior(
behavior: ResolveBehavior,
has_dev_units: HasDevUnits
) -> FeatureOpts
pub fn new_behavior(
behavior: ResolveBehavior,
has_dev_units: HasDevUnits
) -> FeatureOpts
Creates a new FeatureOpts for the given behavior.
Trait Implementations
sourceimpl Default for FeatureOpts
impl Default for FeatureOpts
sourcefn default() -> FeatureOpts
fn default() -> FeatureOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for FeatureOpts
impl Send for FeatureOpts
impl Sync for FeatureOpts
impl Unpin for FeatureOpts
impl UnwindSafe for FeatureOpts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more