#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))]
pub struct UnboundedRange;
impl From<std::ops::RangeFull> for UnboundedRange {
fn from(_: std::ops::RangeFull) -> Self {
Self
}
}
impl From<UnboundedRange> for std::ops::RangeFull {
fn from(_: UnboundedRange) -> Self {
Self
}
}
impl UnboundedRange {
pub fn new() -> Self {
Self
}
pub fn contains<T>(&self, _: T) -> bool {
true
}
}