pub struct ProfileDocument { /* private fields */ }Implementations§
Source§impl ProfileDocument
impl ProfileDocument
pub fn active_profile(&self) -> Option<&str>
pub fn profiles(&self) -> &BTreeMap<String, Profile>
pub fn profile(&self, name: &str) -> Option<&Profile>
pub fn insert(&mut self, name: String, profile: Profile) -> Option<Profile>
pub fn remove(&mut self, name: &str) -> Option<Profile>
pub fn set_active_profile(&mut self, name: Option<String>)
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ProfileDocument
impl Clone for ProfileDocument
Source§fn clone(&self) -> ProfileDocument
fn clone(&self) -> ProfileDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileDocument
impl Debug for ProfileDocument
Source§impl Default for ProfileDocument
impl Default for ProfileDocument
Source§fn default() -> ProfileDocument
fn default() -> ProfileDocument
Returns the “default value” for a type. Read more
impl Eq for ProfileDocument
Source§impl PartialEq for ProfileDocument
impl PartialEq for ProfileDocument
impl StructuralPartialEq for ProfileDocument
Auto Trait Implementations§
impl Freeze for ProfileDocument
impl RefUnwindSafe for ProfileDocument
impl Send for ProfileDocument
impl Sync for ProfileDocument
impl Unpin for ProfileDocument
impl UnsafeUnpin for ProfileDocument
impl UnwindSafe for ProfileDocument
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