Method
new
(
inner: Arc<dyn WindowUDFImpl>,
new_aliases: impl IntoIterator<Item = &'static str>,
)
Source from the content-addressed store, hash-verified
| 501 | |
| 502 | impl AliasedWindowUDFImpl { |
| 503 | pub fn new( |
| 504 | inner: Arc<dyn WindowUDFImpl>, |
| 505 | new_aliases: impl IntoIterator<Item = &'static str>, |
| 506 | ) -> Self { |
| 507 | let mut aliases = inner.aliases().to_vec(); |
| 508 | aliases.extend(new_aliases.into_iter().map(|s| s.to_string())); |
| 509 | |
| 510 | Self { |
| 511 | inner: inner.into(), |
| 512 | aliases, |
| 513 | } |
| 514 | } |
| 515 | } |
| 516 | |
| 517 | #[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