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 Freeze for Template
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