pub fn add_file_to_far(
        &mut self,
        at_path: impl AsRef<str>,
        file: impl AsRef<str>,
    ) -> Result<()> {
        let at_path = at_path.as_ref();
        let file = file.as_ref();
        self.validate_ok_to_add_at_path(at_path)?;

        self.far_contents.insert(at_path.to_string(), file.to_string());

        Ok(())
    }
/// Add a file to the package's far.
///
/// Errors
///
/// Will return an error if the path for the file is already being used.
/// Will return an error if any special package metadata paths are used.
Add a file to the package's far.
Errors

Will return an error if the path for the file is already being used.
Will return an error if any special package metadata paths are used.
Add a file to the package ' s far . Errors Will return an error if the path for the file is already being used . Will return an error if any special package metadata paths are used .
pub fn add_file_to_far(
        &mut self,
        at_path: impl AsRef<str>,
        file: impl AsRef<str>,
    ) -> Result<()> {
        let at_path = at_path.as_ref();
        let file = file.as_ref();
        self.validate_ok_to_add_at_path(at_path)?;
        self.far_contents.insert(at_path.to_string(), file.to_string());
        Ok(())
    }
pub fn add_file_to_far ( & mut self , at_path : impl AsRef < str > , file : impl AsRef < str > , ) -> Result < ( ) > { let at_path = at_path . as_ref ( ) ; let file = file . as_ref ( ) ; self . validate_ok_to_add_at_path ( at_path ) ? ; self . far_contents . insert ( at_path . to_string ( ) , file . to_string ( ) ) ; Ok ( ( ) ) }
Add a file to the package's far.
Add a file to the package ' s far .
&mut self
at_path
impl AsRef<str>
file
impl AsRef<str>
&mut self
at_path
impl AsRef<str>
file
impl AsRef<str>