Struct cargo_wizard::Template
source · pub struct Template { /* private fields */ }Expand description
A set of Cargo profile items and .cargo/config.toml config items that can be applied to a Cargo workspace.
Implementations§
source§impl Template
impl Template
pub fn inherits(&self) -> BuiltinProfile
pub fn iter_items(&self) -> impl Iterator<Item = (TemplateItemId, &TomlValue)>
pub fn get_item(&self, id: TemplateItemId) -> Option<&TomlValue>
pub fn insert_item(&mut self, id: TemplateItemId, value: TomlValue)
pub fn remove_item(&mut self, id: TemplateItemId)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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