/// Create a new `Creator` object by passing in the tranform and create objects. This function
/// will append the default `Create` implementation as the last last `Create` object.
Create a new `Creator` object by passing in the tranform and create objects. This function
will append the default `Create` implementation as the last last `Create` object.
Create a new ` Creator ` object by passing in the tranform and create objects . This function will append the default ` Create ` implementation as the last last ` Create ` object .
pub fn new_with_default(
        transforms: Option<Vec<Box<dyn Transform>>>,
        mut creates: Option<Vec<Box<dyn Create>>>,
        post_processors: Option<Vec<Box<dyn PostProcess>>>,
    ) -> Self {
        let mut creates = if let Some(the_goods) = creates {
            the_goods
        } else {
            Vec::new()
        };
        creates.push(Box::new(DefaultCreate::default()));
        Self {
            transforms,
            creates,
            post_processors,
        }
    }
pub fn new_with_default ( transforms : Option < Vec < Box < dyn Transform > > > , mut creates : Option < Vec < Box < dyn Create > > > , post_processors : Option < Vec < Box < dyn PostProcess > > > , ) -> Self { let mut creates = if let Some ( the_goods ) = creates { the_goods } else { Vec :: new ( ) } ; creates . push ( Box :: new ( DefaultCreate :: default ( ) ) ) ; Self { transforms , creates , post_processors , } }
Create a new `Creator` object by passing in the tranform and create objects.
Create a new ` Creator ` object by passing in the tranform and create objects .
transforms
Option<Vec<Box<dyn Transform>>>
creates
Option<Vec<Box<dyn Create>>>
post_processors
Option<Vec<Box<dyn PostProcess>>>