/// Merges the selected profile with the default and global profiles.
Merges the selected profile with the default and global profiles.
Merges the selected profile with the default and global profiles .
fn merged(&self) -> Result<Value> {
        let mut map = self.value.clone().map_err(|e| e.resolved(self))?;
        let def = map.remove(&Profile::Default).unwrap_or_default();
        let global = map.remove(&Profile::Global).unwrap_or_default();
        let map = match map.remove(&self.profile) {
            Some(v) if self.profile.is_custom() => def.merge(v).merge(global),
            _ => def.merge(global)
        };
        Ok(Value::Dict(Tag::Default, map))
    }
fn merged ( & self ) -> Result < Value > { let mut map = self . value . clone ( ) . map_err ( | e | e . resolved ( self ) ) ? ; let def = map . remove ( & Profile :: Default ) . unwrap_or_default ( ) ; let global = map . remove ( & Profile :: Global ) . unwrap_or_default ( ) ; let map = match map . remove ( & self . profile ) { Some ( v ) if self . profile . is_custom ( ) => def . merge ( v ) . merge ( global ) , _ => def . merge ( global ) } ; Ok ( Value :: Dict ( Tag :: Default , map ) ) }
Merges the selected profile with the default and global profiles.
Merges the selected profile with the default and global profiles .
&self