pub struct Match {
pub cell_index: usize,
pub cell_number: usize,
pub execution_count: Option<i32>,
pub match_type: MatchType,
pub line_index: usize,
pub line_number: usize,
pub line_content: String,
pub matched_text: String,
pub context_before: Vec<String>,
pub context_after: Vec<String>,
}Expand description
A single match found in a notebook
Fields§
§cell_index: usizeCell index (0-based)
cell_number: usizeCell number (1-based, human-friendly)
execution_count: Option<i32>Execution count (may be None for unexecuted cells)
match_type: MatchTypeType of match (input or output)
line_index: usizeLine number within the cell (0-based)
line_number: usizeLine number (1-based, human-friendly)
line_content: StringThe full line content
matched_text: StringThe matched portion of the line
context_before: Vec<String>Context lines before the match
context_after: Vec<String>Context lines after the match
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Match
impl<'de> Deserialize<'de> for Match
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnsafeUnpin for Match
impl UnwindSafe for Match
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