pub struct StringSpan {
pub start: usize,
pub end: usize,
}Expand description
A span in a string. Does not account for lines
Fields§
§start: usizeThe first position in the span
end: usizeThe first position NOT in the span
Trait Implementations§
Source§impl Clone for StringSpan
impl Clone for StringSpan
Source§fn clone(&self) -> StringSpan
fn clone(&self) -> StringSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StringSpan
impl Debug for StringSpan
Source§impl Default for StringSpan
impl Default for StringSpan
Source§fn default() -> StringSpan
fn default() -> StringSpan
Returns the “default value” for a type. Read more
Source§impl Display for StringSpan
impl Display for StringSpan
impl Copy for StringSpan
Auto Trait Implementations§
impl Freeze for StringSpan
impl RefUnwindSafe for StringSpan
impl Send for StringSpan
impl Sync for StringSpan
impl Unpin for StringSpan
impl UnsafeUnpin for StringSpan
impl UnwindSafe for StringSpan
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