pub struct Range<V, B> { /* private fields */ }
Expand description
A range for use with the Collate
trait.
Implementations
sourceimpl<V, B> Range<V, B>
impl<V, B> Range<V, B>
sourcepub fn has_bounds(&self) -> bool
pub fn has_bounds(&self) -> bool
Returns false
if both the start and end bounds of this Range
are Unbounded
.
sourceimpl<V, B: Borrow<[V]>> Range<V, B>
impl<V, B: Borrow<[V]>> Range<V, B>
pub fn new(prefix: B, range: Range<V>) -> Self
pub fn with_prefix(prefix: B) -> Self
pub fn into_inner(self) -> (B, Bound<V>, Bound<V>)
pub fn len(&self) -> usize
pub fn prefix(&self) -> &[V]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn start(&self) -> &Bound<V>
pub fn end(&self) -> &Bound<V>
Trait Implementations
impl<V: Eq, B: Eq> Eq for Range<V, B>
impl<V, B> StructuralEq for Range<V, B>
impl<V, B> StructuralPartialEq for Range<V, B>
Auto Trait Implementations
impl<V, B> RefUnwindSafe for Range<V, B> where
B: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, B> Send for Range<V, B> where
B: Send,
V: Send,
impl<V, B> Sync for Range<V, B> where
B: Sync,
V: Sync,
impl<V, B> Unpin for Range<V, B> where
B: Unpin,
V: Unpin,
impl<V, B> UnwindSafe for Range<V, B> where
B: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more