pub fn find_chunk_edge(&mut self, buf: &[u8]) -> Option<(usize, u64)> {
        const DIGEST_SIZE: usize = 64;
        debug_assert_eq!(
            mem::size_of::<<Self as Engine>::Digest>() * 8,
            DIGEST_SIZE
            );
        let shift = DIGEST_SIZE as u32 - self.chunk_bits;
        self.find_chunk_edge_cond(buf, |e: &Gear| (e.digest() >> shift) == 0)
    }
/// Find chunk edge using Gear defaults.
///
/// See `Engine::find_chunk_edge_cond`.
Find chunk edge using Gear defaults.
Find chunk edge using Gear defaults .
pub fn find_chunk_edge(&mut self, buf: &[u8]) -> Option<(usize, u64)> {
        const DIGEST_SIZE: usize = 64;
        debug_assert_eq!(
            mem::size_of::<<Self as Engine>::Digest>() * 8,
            DIGEST_SIZE
            );
        let shift = DIGEST_SIZE as u32 - self.chunk_bits;
        self.find_chunk_edge_cond(buf, |e: &Gear| (e.digest() >> shift) == 0)
    }
pub fn find_chunk_edge ( & mut self , buf : & [ u8 ] ) -> Option < ( usize , u64 ) > { const DIGEST_SIZE : usize = 64 ; debug_assert_eq ! ( mem size_of Self as Engine Digest ( ) 8 DIGEST_SIZE ) ; let shift = DIGEST_SIZE as u32 - self . chunk_bits ; self . find_chunk_edge_cond ( buf , | e : & Gear | ( e . digest ( ) >> shift ) == 0 ) }
Find chunk edge using Gear defaults.
Find chunk edge using Gear defaults .
&mut self
buf
&[u8]