pub struct Instance {
pub file: usize,
pub token_start: usize,
pub token_end: usize,
pub start_line: u32,
pub end_line: u32,
pub unit: Option<usize>,
}Expand description
One occurrence of matched content.
Fields§
§file: usizeIndex of the file in the input slice.
token_start: usizeFirst matched token.
token_end: usizeOne past the last matched token.
start_line: u321-based first line, for reporting.
end_line: u321-based last line, for reporting.
unit: Option<usize>Index into the file’s units of the innermost enclosing unit, when
the match sits inside one; the report anchor for partial clones.
Trait Implementations§
impl Eq for Instance
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.