pub struct Parsed<T> {
pub data: T,
pub range: Range<usize>,
}Expand description
Represents some data that has been parsed out of a string. Contains the data that was extracted as well as the location in the input string of the substring that was related to the data.
Fields§
§data: T§range: Range<usize>Auto Trait Implementations§
impl<T> Freeze for Parsed<T>where
T: Freeze,
impl<T> RefUnwindSafe for Parsed<T>where
T: RefUnwindSafe,
impl<T> Send for Parsed<T>where
T: Send,
impl<T> Sync for Parsed<T>where
T: Sync,
impl<T> Unpin for Parsed<T>where
T: Unpin,
impl<T> UnwindSafe for Parsed<T>where
T: UnwindSafe,
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