Trait timer_util::Operator
source · [−]pub trait Operator: Sized {
type ValTy: BitOr<Output = Self::ValTy> + Shl<Output = Self::ValTy> + Copy + BitOrAssign + Add<Output = Self::ValTy> + Sub<Output = Self::ValTy> + PartialOrd + AddAssign + BitAnd<Output = Self::ValTy> + Display;
type DataTy: AsData<Self::ValTy> + Copy + Clone;
const MIN: Self::ValTy;
const MAX: Self::ValTy;
const ONE: Self::ValTy;
const ZERO: Self::ValTy;
const DEFAULT_MAX: Self::ValTy;
Show 19 methods
fn _default() -> Self;
fn next(&self, index: Self::DataTy) -> Option<Self::DataTy>;
fn min_val(&self) -> Self::DataTy;
fn _val(&self) -> Self::ValTy;
fn _val_mut(&mut self, val: Self::ValTy);
fn default_value(val: Self::DataTy) -> Self { ... }
fn default_range(range: impl RangeBounds<Self::DataTy>) -> Result<Self> { ... }
fn default_all() -> Self { ... }
fn default_all_by_max(max: Self::DataTy) -> Self { ... }
fn default_array(vals: &[Self::DataTy]) -> Self { ... }
fn add_array(self, vals: &[Self::DataTy]) -> Self { ... }
fn add(self, index: Self::DataTy) -> Self { ... }
fn add_range(self, range: impl RangeBounds<Self::DataTy>) -> Result<Self> { ... }
fn merge(&self, other: &Self) -> Self { ... }
fn intersection(&self, other: &Self) -> Self { ... }
fn to_vec(&self) -> Vec<Self::ValTy> { ... }
fn contain(&self, index: Self::DataTy) -> bool { ... }
fn _next(&self, index: Self::DataTy) -> Option<Self::ValTy> { ... }
fn _min_val(&self) -> Self::ValTy { ... }
}
Required Associated Types
Required Associated Constants
const DEFAULT_MAX: Self::ValTy
const DEFAULT_MAX: Self::ValTy
满值:即全选的值,比如星期7天全选,则为二进制1111 1110