mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-18 17:52:53 +00:00
Move same generic parameters to associated types. Work around private fields of SumResult<T>
15 lines
292 B
Rust
15 lines
292 B
Rust
pub mod rsq;
|
|
|
|
#[derive(Copy, Clone, Debug)]
|
|
pub struct SameElementsInitializer<T> {
|
|
initial_element_value: T,
|
|
}
|
|
|
|
impl<T> SameElementsInitializer<T> {
|
|
pub fn new(initial_element_value: T) -> Self {
|
|
SameElementsInitializer {
|
|
initial_element_value,
|
|
}
|
|
}
|
|
}
|