pub struct MatchCandidate {
pub line: u32,
pub col: u32,
pub snippet: String,
}Expand description
A single occurrence of old_str found inside a string field, used to
populate the candidates array in an AMBIGUOUS_MATCH error response.
Fields§
§line: u321-indexed line number where the match starts.
col: u321-indexed column (byte offset within the line + 1) where the match starts.
snippet: StringShort surrounding context (~30 chars) for display in error responses.
Trait Implementations§
Source§impl Clone for MatchCandidate
impl Clone for MatchCandidate
Source§fn clone(&self) -> MatchCandidate
fn clone(&self) -> MatchCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MatchCandidate
impl Debug for MatchCandidate
Auto Trait Implementations§
impl Freeze for MatchCandidate
impl RefUnwindSafe for MatchCandidate
impl Send for MatchCandidate
impl Sync for MatchCandidate
impl Unpin for MatchCandidate
impl UnsafeUnpin for MatchCandidate
impl UnwindSafe for MatchCandidate
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