mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 06:39:58 -07:00
26 lines
460 B
Rust
26 lines
460 B
Rust
use std::ops::{Add, AddAssign, Div};
|
|
|
|
use vecdb::{Formattable, Pco};
|
|
|
|
pub trait ComputedVecValue
|
|
where
|
|
Self: Pco
|
|
+ From<usize>
|
|
+ Div<usize, Output = Self>
|
|
+ Add<Output = Self>
|
|
+ AddAssign
|
|
+ Ord
|
|
+ Formattable,
|
|
{
|
|
}
|
|
impl<T> ComputedVecValue for T where
|
|
T: Pco
|
|
+ From<usize>
|
|
+ Div<usize, Output = Self>
|
|
+ Add<Output = Self>
|
|
+ AddAssign
|
|
+ Ord
|
|
+ Formattable
|
|
{
|
|
}
|