pub struct DisplayContext<'r> {
pub matched: Cow<'r, str>,
pub leading: &'r str,
pub trailing: &'r str,
pub start_line: usize,
}
Fields§
§matched: Cow<'r, str>
content for the matched node
leading: &'r str
content before the matched node
trailing: &'r str
content after the matched node
start_line: usize
zero-based start line of the context
Auto Trait Implementations§
impl<'r> Freeze for DisplayContext<'r>
impl<'r> RefUnwindSafe for DisplayContext<'r>
impl<'r> Send for DisplayContext<'r>
impl<'r> Sync for DisplayContext<'r>
impl<'r> Unpin for DisplayContext<'r>
impl<'r> UnwindSafe for DisplayContext<'r>
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