pub fn add_from_file_as_origin<P: AsRef<Path>>(
        &mut self,
        path: P,
        formats: &[Rc<dyn ContentFormat>],
    ) -> Result<(), Box<dyn Error>> {
        self.origin = self.add_from_file(path, formats)?;

        Ok(())
    }
/// Extends this fuset with another one, which is created in the
/// [`Context`] of the old fuset from a script file to be found
/// along the `path`.
///
/// The script file is interpreted according to an appropriate
/// format of content description listed in the `formats` array.
///
/// On success, stores the chosen format as the new content
/// origin.
///
/// [`Context`]: crate::Context
Extends this fuset with another one, which is created in the
[`Context`] of the old fuset from a script file to be found
along the `path`.

The script file is interpreted according to an appropriate
format of content description listed in the `formats` array.

On success, stores the chosen format as the new content
origin.

[`Context`]: crate::Context
Extends this fuset with another one which is created in the [ ` Context ` ] of the old fuset from a script file to be found along the ` path ` . The script file is interpreted according to an appropriate format of content description listed in the ` formats ` array . On success stores the chosen format as the new content origin . [ ` Context ` ] : crate :: Context
pub fn add_from_file_as_origin<P: AsRef<Path>>(
        &mut self,
        path: P,
        formats: &[Rc<dyn ContentFormat>],
    ) -> Result<(), Box<dyn Error>> {
        self.origin = self.add_from_file(path, formats)?;
        Ok(())
    }
pub fn add_from_file_as_origin < P : AsRef < Path > > ( & mut self , path : P , formats : & [ Rc < dyn ContentFormat > ] , ) -> Result < ( ) , Box < dyn Error > > { self . origin = self . add_from_file ( path , formats ) ? ; Ok ( ( ) ) }
Extends this fuset with another one, which is created in the
[`Context`] of the old fuset from a script file to be found
along the `path`.
Extends this fuset with another one which is created in the [ ` Context ` ] of the old fuset from a script file to be found along the ` path ` .
&mut self
path
P
formats
&[Rc<dyn ContentFormat>]
&mut self
path
P
formats
&[Rc<dyn ContentFormat>]