pub struct GrepLineMatch {
pub line_num: u64,
pub line_text: String,
}Expand description
A single line match within a file.
Fields§
§line_num: u641-indexed line number.
line_text: StringContent of the matched line.
Trait Implementations§
Source§impl Clone for GrepLineMatch
impl Clone for GrepLineMatch
Source§fn clone(&self) -> GrepLineMatch
fn clone(&self) -> GrepLineMatch
Returns a duplicate 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 Debug for GrepLineMatch
impl Debug for GrepLineMatch
Source§impl Serialize for GrepLineMatch
impl Serialize for GrepLineMatch
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for GrepLineMatch
impl RefUnwindSafe for GrepLineMatch
impl Send for GrepLineMatch
impl Sync for GrepLineMatch
impl Unpin for GrepLineMatch
impl UnwindSafe for GrepLineMatch
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