Skip to main content

WindowFunction

Trait WindowFunction 

Source
pub trait WindowFunction {
    // Required method
    fn to_sql(&self, window: &Window) -> String;
}
Available on crate feature database and native only.
Expand description

Base trait for window functions

Required Methods§

Source

fn to_sql(&self, window: &Window) -> String

Converts the window function to SQL using the given window definition.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§