pub struct ParamDefWithType {
pub groups: Vec<ParamGroupWithParamType>,
}Expand description
Full parameter list with types, e.g. a, b T, c E as a sequence of ParamGroupWithParamType.
Fields§
§groups: Vec<ParamGroupWithParamType>Implementations§
Source§impl ParamDefWithType
impl ParamDefWithType
pub fn new(groups: Vec<ParamGroupWithParamType>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_, ParamGroupWithParamType>
pub fn as_slice(&self) -> &[ParamGroupWithParamType]
pub fn number_of_params(&self) -> usize
pub fn collect_param_names(&self) -> Vec<String>
pub fn collect_param_names_with_types(&self) -> Vec<(String, ParamType)>
pub fn flat_instantiated_types_for_args( &self, instantiated_types: &[ParamType], ) -> Vec<ParamType>
pub fn param_def_params_to_arg_map( &self, arg_map: &HashMap<String, Obj>, ) -> Option<HashMap<String, Obj>>
pub fn param_defs_and_args_to_param_to_arg_map( &self, args: &[Obj], ) -> HashMap<String, Obj>
Source§impl ParamDefWithType
impl ParamDefWithType
pub fn to_latex_string(&self) -> String
Trait Implementations§
Source§impl Clone for ParamDefWithType
impl Clone for ParamDefWithType
Source§fn clone(&self) -> ParamDefWithType
fn clone(&self) -> ParamDefWithType
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 moreSource§impl Display for ParamDefWithType
impl Display for ParamDefWithType
Source§impl From<Vec<ParamGroupWithParamType>> for ParamDefWithType
impl From<Vec<ParamGroupWithParamType>> for ParamDefWithType
Source§fn from(groups: Vec<ParamGroupWithParamType>) -> Self
fn from(groups: Vec<ParamGroupWithParamType>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParamDefWithType
impl RefUnwindSafe for ParamDefWithType
impl !Send for ParamDefWithType
impl !Sync for ParamDefWithType
impl Unpin for ParamDefWithType
impl UnsafeUnpin for ParamDefWithType
impl UnwindSafe for ParamDefWithType
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