pub fn add_from_str_as_origin<S: AsRef<str>>(
        &mut self,
        script: S,
        formats: &[Rc<dyn ContentFormat>],
    ) -> Result<(), Box<dyn Error>> {
        self.origin = self.add_from_str(script, formats)?;

        Ok(())
    }
/// Extends this fuset with another one, which is created in the
/// [`Context`] of the old fuset from a given textual description.
///
/// The `script` 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 given textual description.

The `script` 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 given textual description . The ` script ` 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_str_as_origin<S: AsRef<str>>(
        &mut self,
        script: S,
        formats: &[Rc<dyn ContentFormat>],
    ) -> Result<(), Box<dyn Error>> {
        self.origin = self.add_from_str(script, formats)?;
        Ok(())
    }
pub fn add_from_str_as_origin < S : AsRef < str > > ( & mut self , script : S , formats : & [ Rc < dyn ContentFormat > ] , ) -> Result < ( ) , Box < dyn Error > > { self . origin = self . add_from_str ( script , formats ) ? ; Ok ( ( ) ) }
Extends this fuset with another one, which is created in the
[`Context`] of the old fuset from a given textual description.
Extends this fuset with another one which is created in the [ ` Context ` ] of the old fuset from a given textual description .
&mut self
script
S
formats
&[Rc<dyn ContentFormat>]
&mut self
script
S
formats
&[Rc<dyn ContentFormat>]