pub struct StrRange<'a> {
pub slice: &'a str,
pub range: Range<usize>,
}Fields§
§slice: &'a stroriginal text sliced by self.range
range: Range<usize>byte-index range in original text
Trait Implementations§
source§impl<'a> PartialEq for StrRange<'a>
impl<'a> PartialEq for StrRange<'a>
impl<'a> Eq for StrRange<'a>
impl<'a> StructuralPartialEq for StrRange<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for StrRange<'a>
impl<'a> Send for StrRange<'a>
impl<'a> Sync for StrRange<'a>
impl<'a> Unpin for StrRange<'a>
impl<'a> UnwindSafe for StrRange<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.