enrede 0.2.0

An easy-to-use string encoding library, providing an interface similar to str/String.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use core::ops::{Bound, RangeBounds, RangeFrom, RangeFull};

pub trait RangeOpen<T> {
    fn start_bound(&self) -> Bound<&T>;
}

impl<T> RangeOpen<T> for RangeFrom<T> {
    fn start_bound(&self) -> Bound<&T> {
        <Self as RangeBounds<T>>::start_bound(self)
    }
}

impl<T> RangeOpen<T> for RangeFull {
    fn start_bound(&self) -> Bound<&T> {
        <Self as RangeBounds<T>>::start_bound(self)
    }
}