Struct difflib::sequencematcher::SequenceMatcher
source · pub struct SequenceMatcher<'a, T: 'a + Sequence> { /* private fields */ }
Implementations§
source§impl<'a, T: Sequence> SequenceMatcher<'a, T>
impl<'a, T: Sequence> SequenceMatcher<'a, T>
pub fn new<S>( first_sequence: &'a S, second_sequence: &'a S, ) -> SequenceMatcher<'a, T>
pub fn set_is_junk(&mut self, is_junk: Option<fn(_: &T) -> bool>)
pub fn set_seqs<S>(&mut self, first_sequence: &'a S, second_sequence: &'a S)
pub fn set_first_seq<S>(&mut self, sequence: &'a S)
pub fn set_second_seq<S>(&mut self, sequence: &'a S)
pub fn find_longest_match( &self, first_start: usize, first_end: usize, second_start: usize, second_end: usize, ) -> Match
pub fn get_matching_blocks(&mut self) -> Vec<Match>
pub fn get_opcodes(&mut self) -> Vec<Opcode>
pub fn get_grouped_opcodes(&mut self, n: usize) -> Vec<Vec<Opcode>>
pub fn ratio(&mut self) -> f32
Auto Trait Implementations§
impl<'a, T> Freeze for SequenceMatcher<'a, T>
impl<'a, T> RefUnwindSafe for SequenceMatcher<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for SequenceMatcher<'a, T>where
T: Sync,
impl<'a, T> Sync for SequenceMatcher<'a, T>where
T: Sync,
impl<'a, T> Unpin for SequenceMatcher<'a, T>
impl<'a, T> UnwindSafe for SequenceMatcher<'a, T>where
T: RefUnwindSafe,
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