pub struct BuildingBlockFactory<'a> { /* private fields */ }Implementations§
Source§impl<'a> BuildingBlockFactory<'a>
impl<'a> BuildingBlockFactory<'a>
pub fn new(name: &str) -> Self
pub fn set_vector( &mut self, block: &'a dyn Fn(&str, &VectorConfig<'_>, &GenConfig) -> BlockRes, )
pub fn vector( &self, name: &str, config: &VectorConfig<'_>, gen_config: &GenConfig, ) -> BlockRes
pub fn set_dof_handler( &mut self, block: &'a dyn Fn(&str, &DofHandlerConfig<'_>, &GenConfig) -> BlockRes, )
pub fn dof_handler( &self, name: &str, config: &DofHandlerConfig<'_>, gen_config: &GenConfig, ) -> BlockRes
pub fn set_sparsity_pattern( &mut self, block: &'a dyn Fn(&str, &SparsityPatternConfig<'_>, &GenConfig) -> BlockRes, )
pub fn sparsity_pattern( &self, name: &str, config: &SparsityPatternConfig<'_>, gen_config: &GenConfig, ) -> BlockRes
pub fn set_vector_from_function( &mut self, block: &'a dyn Fn(&str, &VectorFromFnConfig<'_>, &GenConfig) -> BlockRes, )
pub fn vector_from_function( &self, name: &str, config: &VectorFromFnConfig<'_>, gen_config: &GenConfig, ) -> BlockRes
pub fn set_apply_boundary_condition( &mut self, block: &'a dyn Fn(&str, &ApplyBoundaryConditionConfig<'_>, &GenConfig) -> BlockRes, )
pub fn apply_boundary_condition( &self, name: &str, config: &ApplyBoundaryConditionConfig<'_>, gen_config: &GenConfig, ) -> BlockRes
pub fn set_initial_condition( &mut self, block: &'a dyn Fn(&str, &InitialConditionConfig<'_>, &GenConfig) -> BlockRes, )
pub fn initial_condition( &self, name: &str, config: &InitialConditionConfig<'_>, gen_config: &GenConfig, ) -> BlockRes
pub fn set_add_vector_output( &mut self, block: &'a dyn Fn(&str, &str, &GenConfig) -> BlockRes, )
pub fn add_vector_output( &self, name: &str, config: &str, gen_config: &GenConfig, ) -> BlockRes
pub fn set_matrix( &mut self, block: &'a dyn Fn(&str, &MatrixConfig<'_>, &GenConfig) -> BlockRes, )
pub fn matrix( &self, name: &str, config: &MatrixConfig<'_>, gen_config: &GenConfig, ) -> BlockRes
pub fn add_mesh( &mut self, type: &str, block: &'a dyn Fn(&str, &dyn Mesh, &GenConfig) -> BlockRes, )
pub fn mesh( &self, name: &str, config: &'a dyn Mesh, gen_config: &GenConfig, ) -> BlockRes
pub fn set_finite_element( &mut self, block: &'a dyn Fn(&str, &FiniteElement, &GenConfig) -> BlockRes, )
pub fn finite_element( &self, name: &str, config: &FiniteElement, gen_config: &GenConfig, ) -> BlockRes
pub fn shape_matrix<'b: 'a>( &self, name: &str, config: &ShapeMatrixConfig<'b>, gen_config: &GenConfig, ) -> BlockRes
pub fn set_shape_matrix( &mut self, block: &'a dyn Fn(&str, BuildingBlock, &ShapeMatrixConfig<'_>) -> BlockRes, )
pub fn set_solve_unknown( &mut self, block: &'a dyn Fn(&str, &SolveUnknownConfig<'_>, &GenConfig) -> BlockRes, )
pub fn solve_unknown( &self, name: &str, config: &SolveUnknownConfig<'_>, gen_config: &GenConfig, ) -> BlockRes
pub fn set_equation_setup( &mut self, block: &'a dyn Fn(&str, &EquationSetupConfig<'_>, &GenConfig) -> BlockRes, )
pub fn equation_setup( &self, name: &str, config: &EquationSetupConfig<'_>, gen_config: &GenConfig, ) -> BlockRes
pub fn call(&self, name: &str, args: &[&str]) -> BlockRes
pub fn set_call(&mut self, block: &'a dyn Fn(&str, &[&str]) -> BlockRes)
pub fn set_parameter( &mut self, block: &'a dyn Fn(&str, &f64, &GenConfig) -> BlockRes, )
pub fn parameter( &self, name: &str, config: &f64, gen_config: &GenConfig, ) -> BlockRes
pub fn set_function( &mut self, block: &'a dyn Fn(&str, &FunctionDef, &GenConfig) -> BlockRes, )
pub fn function( &self, name: &str, config: &FunctionDef, gen_config: &GenConfig, ) -> BlockRes
Trait Implementations§
Source§impl<'a> Clone for BuildingBlockFactory<'a>
impl<'a> Clone for BuildingBlockFactory<'a>
Source§fn clone(&self) -> BuildingBlockFactory<'a>
fn clone(&self) -> BuildingBlockFactory<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for BuildingBlockFactory<'a>
impl<'a> !RefUnwindSafe for BuildingBlockFactory<'a>
impl<'a> !Send for BuildingBlockFactory<'a>
impl<'a> !Sync for BuildingBlockFactory<'a>
impl<'a> Unpin for BuildingBlockFactory<'a>
impl<'a> !UnwindSafe for BuildingBlockFactory<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more