()
| 159 | /// Create a new `FunctionDispatcher` instance. |
| 160 | #[must_use] |
| 161 | pub fn new() -> Self { |
| 162 | let mut functions: HashMap<String, Box<dyn Function>> = HashMap::new(); |
| 163 | let function_list : Vec<Box<dyn Function>> = vec![ |
| 164 | Box::new(add::Add{}), |
| 165 | Box::new(and::And{}), |
| 166 | Box::new(array::Array{}), |
| 167 | Box::new(base64::Base64{}), |
| 168 | Box::new(base64_to_string::Base64ToString{}), |
| 169 | Box::new(bool::Bool{}), |
| 170 | Box::new(cidr_host::CidrHost{}), |
| 171 | Box::new(cidr_subnet::CidrSubnet{}), |
| 172 | Box::new(coalesce::Coalesce{}), |
| 173 | Box::new(concat::Concat{}), |
| 174 | Box::new(contains::Contains{}), |
| 175 | Box::new(context::Context{}), |
| 176 | Box::new(copy_index::CopyIndex{}), |
| 177 | Box::new(create_array::CreateArray{}), |
| 178 | Box::new(create_object::CreateObject{}), |
| 179 | Box::new(data_uri::DataUri{}), |
| 180 | Box::new(data_uri_to_string::DataUriToString{}), |
| 181 | Box::new(div::Div{}), |
| 182 | Box::new(empty::Empty{}), |
| 183 | Box::new(ends_with::EndsWith{}), |
| 184 | Box::new(envvar::Envvar{}), |
| 185 | Box::new(equals::Equals{}), |
| 186 | Box::new(greater::Greater{}), |
| 187 | Box::new(greater_or_equals::GreaterOrEquals{}), |
| 188 | Box::new(r#if::If{}), |
| 189 | Box::new(r#false::False{}), |
| 190 | Box::new(first::First{}), |
| 191 | Box::new(last::Last{}), |
| 192 | Box::new(length::Length{}), |
| 193 | Box::new(less::Less{}), |
| 194 | Box::new(less_or_equals::LessOrEquals{}), |
| 195 | Box::new(format::Format{}), |
| 196 | Box::new(int::Int{}), |
| 197 | Box::new(index_of::IndexOf{}), |
| 198 | Box::new(intersection::Intersection{}), |
| 199 | Box::new(items::Items{}), |
| 200 | Box::new(join::Join{}), |
| 201 | Box::new(json::Json{}), |
| 202 | Box::new(filter::Filter{}), |
| 203 | Box::new(lambda::LambdaFn{}), |
| 204 | Box::new(lambda_variables::LambdaVariables{}), |
| 205 | Box::new(last_index_of::LastIndexOf{}), |
| 206 | Box::new(map::Map{}), |
| 207 | Box::new(max::Max{}), |
| 208 | Box::new(min::Min{}), |
| 209 | Box::new(mod_function::Mod{}), |
| 210 | Box::new(mul::Mul{}), |
| 211 | Box::new(not::Not{}), |
| 212 | Box::new(null::Null{}), |
| 213 | Box::new(object_keys::ObjectKeys{}), |
| 214 | Box::new(or::Or{}), |
| 215 | Box::new(parameters::Parameters{}), |
| 216 | Box::new(parse_cidr::ParseCidr{}), |
| 217 | Box::new(path::Path{}), |
| 218 | Box::new(range::Range{}), |
nothing calls this directly
no test coverage detected