pub struct MentionMatch {
pub tree_diff_path: String,
pub matched_text: String,
}Expand description
A match found when scanning amendment text for section mentions.
When scanning bill amendments against a TreeDiff’s regexes, this struct captures each match, linking the structural path from the TreeDiff to the text that matched in the amendment.
Fields§
§tree_diff_path: StringThe structural path from the TreeDiff that generated this match
matched_text: StringThe text that matched the regex pattern
Trait Implementations§
Source§impl Clone for MentionMatch
impl Clone for MentionMatch
Source§fn clone(&self) -> MentionMatch
fn clone(&self) -> MentionMatch
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 MentionMatch
impl Debug for MentionMatch
Source§impl<'de> Deserialize<'de> for MentionMatch
impl<'de> Deserialize<'de> for MentionMatch
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
Source§impl Hash for MentionMatch
impl Hash for MentionMatch
Source§impl PartialEq for MentionMatch
impl PartialEq for MentionMatch
Source§fn eq(&self, other: &MentionMatch) -> bool
fn eq(&self, other: &MentionMatch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MentionMatch
impl Serialize for MentionMatch
impl Eq for MentionMatch
impl StructuralPartialEq for MentionMatch
Auto Trait Implementations§
impl Freeze for MentionMatch
impl RefUnwindSafe for MentionMatch
impl Send for MentionMatch
impl Sync for MentionMatch
impl Unpin for MentionMatch
impl UnsafeUnpin for MentionMatch
impl UnwindSafe for MentionMatch
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more