Struct cargo_toml_builder::types::Feature
source · pub struct Feature { /* private fields */ }
Expand description
Represents a single feature
Implementations
sourceimpl Feature
impl Feature
sourcepub fn dependency<D: Into<Dependency>>(&mut self, dep: D) -> &mut Self
pub fn dependency<D: Into<Dependency>>(&mut self, dep: D) -> &mut Self
Adds a dependency to the list for this feature
sourcepub fn dependencies<D: Into<Dependency>>(&mut self, deps: Vec<D>) -> &mut Self
pub fn dependencies<D: Into<Dependency>>(&mut self, deps: Vec<D>) -> &mut Self
Sets the list of dependencies for this feature
Trait Implementations
impl StructuralPartialEq for Feature
Auto Trait Implementations
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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