Method
new
(
inner: Arc<dyn ScalarUDFImpl>,
new_aliases: impl IntoIterator<Item = &'static str>,
)
Source from the content-addressed store, hash-verified
| 1059 | |
| 1060 | impl AliasedScalarUDFImpl { |
| 1061 | pub fn new( |
| 1062 | inner: Arc<dyn ScalarUDFImpl>, |
| 1063 | new_aliases: impl IntoIterator<Item = &'static str>, |
| 1064 | ) -> Self { |
| 1065 | let mut aliases = inner.aliases().to_vec(); |
| 1066 | aliases.extend(new_aliases.into_iter().map(|s| s.to_string())); |
| 1067 | Self { |
| 1068 | inner: inner.into(), |
| 1069 | aliases, |
| 1070 | } |
| 1071 | } |
| 1072 | } |
| 1073 | |
| 1074 | #[warn(clippy::missing_trait_methods)] // Delegates, so it should implement every single trait method |
Callers
nothing calls this directly
Tested by
no test coverage detected