-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathmod.rs
More file actions
49 lines (35 loc) · 1.09 KB
/
mod.rs
File metadata and controls
49 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors
//! Scalar function vtable machinery.
//!
//! This module contains the [`ScalarFnVTable`] trait and all built-in scalar function
//! implementations. Expressions ([`crate::expr::Expression`]) reference scalar functions
//! at each node.
use vortex_session::registry::Id;
mod vtable;
pub use vtable::*;
mod plugin;
pub use plugin::*;
mod foreign;
pub use foreign::*;
mod typed;
pub use typed::*;
mod erased;
pub use erased::*;
mod options;
pub use options::*;
mod signature;
pub use signature::*;
pub mod fns;
pub mod session;
/// A unique identifier for a scalar function.
pub type ScalarFnId = Id;
/// Private module to seal [`typed::DynScalarFn`].
mod sealed {
use crate::scalar_fn::ScalarFnVTable;
use crate::scalar_fn::typed::ScalarFn;
/// Marker trait to prevent external implementations of [`super::typed::DynScalarFn`].
pub(crate) trait Sealed {}
/// This can be the **only** implementor for [`super::typed::DynScalarFn`].
impl<V: ScalarFnVTable> Sealed for ScalarFn<V> {}
}