Struct pex::StringView
source · pub struct StringView<'i> { /* private fields */ }Expand description
A string view with range information from the raw string.
Implementations§
source§impl<'i> StringView<'i>
impl<'i> StringView<'i>
sourcepub fn start_offset(&self) -> usize
pub fn start_offset(&self) -> usize
Create a new named pattern
sourcepub fn end_offset(&self) -> usize
pub fn end_offset(&self) -> usize
Create a new named pattern
Trait Implementations§
source§impl<'i> AsRef<str> for StringView<'i>
impl<'i> AsRef<str> for StringView<'i>
source§impl<'i> Clone for StringView<'i>
impl<'i> Clone for StringView<'i>
source§fn clone(&self) -> StringView<'i>
fn clone(&self) -> StringView<'i>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'i> Debug for StringView<'i>
impl<'i> Debug for StringView<'i>
impl<'i> Copy for StringView<'i>
Auto Trait Implementations§
impl<'i> RefUnwindSafe for StringView<'i>
impl<'i> Send for StringView<'i>
impl<'i> Sync for StringView<'i>
impl<'i> Unpin for StringView<'i>
impl<'i> UnwindSafe for StringView<'i>
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