/// The largest size in bits for the variants of this variant part,
/// excluding leading and trailing padding.
The largest size in bits for the variants of this variant part,
excluding leading and trailing padding.
The largest size in bits for the variants of this variant part excluding leading and trailing padding .
pub fn bit_size(&self, hash: &FileHash) -> Option<u64> {
        let start = self.bit_offset();
        let mut end = start;
        for variant in &self.variants {
            let o = variant.bit_offset();
            if let Some(size) = variant.bit_size(hash) {
                if end < o + size {
                    end = o + size;
                }
            } else {
                return None;
            }
        }
        Some(end - start)
    }
pub fn bit_size ( & self , hash : & FileHash ) -> Option < u64 > { let start = self . bit_offset ( ) ; let mut end = start ; for variant in & self . variants { let o = variant . bit_offset ( ) ; if let Some ( size ) = variant . bit_size ( hash ) { if end < o + size { end = o + size ; } } else { return None ; } } Some ( end - start ) }
The largest size in bits for the variants of this variant part,
excluding leading and trailing padding.
The largest size in bits for the variants of this variant part excluding leading and trailing padding .
&self
hash
&FileHash