pub fn new_complete(
        pattern_len: usize,
        text_len: usize,
        penalties: &mut AffinePenalties,
        alloc: &'a MMAllocator,
    ) -> Self {
        assert!(pattern_len > 0 && text_len > 0);
        let stats_ptr = std::ptr::null_mut() as *mut wavefronts_stats_t;
        let ptr = unsafe {
            affine_wavefronts_new_complete(
                pattern_len as c_int,
                text_len as c_int,
                penalties.as_ptr(),
                stats_ptr,
                alloc.alloc_ptr(),
            )
        };
        AffineWavefronts {
            ptr,
            allocator: alloc,
            pattern_len,
            text_len,
        }
    }
/// Construct a new set of complete wavefronts
Construct a new set of complete wavefronts
Construct a new set of complete wavefronts
pub fn new_complete(
        pattern_len: usize,
        text_len: usize,
        penalties: &mut AffinePenalties,
        alloc: &'a MMAllocator,
    ) -> Self {
        assert!(pattern_len > 0 && text_len > 0);
        let stats_ptr = std::ptr::null_mut() as *mut wavefronts_stats_t;
        let ptr = unsafe {
            affine_wavefronts_new_complete(
                pattern_len as c_int,
                text_len as c_int,
                penalties.as_ptr(),
                stats_ptr,
                alloc.alloc_ptr(),
            )
        };
        AffineWavefronts {
            ptr,
            allocator: alloc,
            pattern_len,
            text_len,
        }
    }
pub fn new_complete ( pattern_len : usize , text_len : usize , penalties : & mut AffinePenalties , alloc : & ' a MMAllocator , ) -> Self { assert ! ( pattern_len 0 text_len 0 ) ; let stats_ptr = std :: ptr :: null_mut ( ) as * mut wavefronts_stats_t ; let ptr = unsafe { affine_wavefronts_new_complete ( pattern_len as c_int , text_len as c_int , penalties . as_ptr ( ) , stats_ptr , alloc . alloc_ptr ( ) , ) } ; AffineWavefronts { ptr , allocator : alloc , pattern_len , text_len , } }
Construct a new set of complete wavefronts
Construct a new set of complete wavefronts
pattern_len
usize
text_len
usize
penalties
&mut AffinePenalties
alloc
&'a MMAllocator