pub struct FeatureOpts { /* private fields */ }
Expand description
Options for how the feature resolver works.
Implementations§
source§impl 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§
source§impl Default for FeatureOpts
impl Default for FeatureOpts
source§fn 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§
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