pub struct Pinch {
pub config: Config,
pub plugins: HashMap<String, PluginDefinition>,
pub context: Context,
}Fields§
§config: Config§plugins: HashMap<String, PluginDefinition>§context: ContextImplementations§
Source§impl Pinch
impl Pinch
pub fn from_config(config: Config) -> Self
pub fn from_file(file_path: &str) -> Self
pub fn register_file(&mut self, input_file: InputFile)
pub fn register_plugin(&mut self, plugin: PluginDefinition)
pub fn remove_plugin(&mut self, name: String) -> Option<PluginDefinition>
pub fn build_with_defaults(&mut self)
pub fn build(&mut self)
Auto Trait Implementations§
impl Freeze for Pinch
impl RefUnwindSafe for Pinch
impl Send for Pinch
impl Sync for Pinch
impl Unpin for Pinch
impl UnwindSafe for Pinch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more