pub fn count_fitting_deltas(&self, since_version: Version, max_bytes: usize) -> usize {
        self.changelog()
            .iter()
            .skip(since_version as usize)
            .scan(0, |size, (key, value)| {
                *size += value.len() + key.as_ref().len();
                Some(*size)
            })
            .take_while(|size| *size < max_bytes)
            .count()
    }
/// Computes the number of deltas with version greater than `since_version`
/// that fit into the specified byte limit.
///
/// This function is used to determine the number of deltas to include into
/// a response to avoid the going beyond the max response size limit.
Computes the number of deltas with version greater than `since_version`
that fit into the specified byte limit.

This function is used to determine the number of deltas to include into
a response to avoid the going beyond the max response size limit.
Computes the number of deltas with version greater than ` since_version ` that fit into the specified byte limit . This function is used to determine the number of deltas to include into a response to avoid the going beyond the max response size limit .
pub fn count_fitting_deltas(&self, since_version: Version, max_bytes: usize) -> usize {
        self.changelog()
            .iter()
            .skip(since_version as usize)
            .scan(0, |size, (key, value)| {
                *size += value.len() + key.as_ref().len();
                Some(*size)
            })
            .take_while(|size| *size < max_bytes)
            .count()
    }
pub fn count_fitting_deltas ( & self , since_version : Version , max_bytes : usize ) -> usize { self . changelog ( ) . iter ( ) . skip ( since_version as usize ) . scan ( 0 , | size , ( key , value ) | { * size += value . len ( ) + key . as_ref ( ) . len ( ) ; Some ( * size ) } ) . take_while ( | size | * size < max_bytes ) . count ( ) }
Computes the number of deltas with version greater than `since_version`
that fit into the specified byte limit.
Computes the number of deltas with version greater than ` since_version ` that fit into the specified byte limit .
&self
since_version
Version
max_bytes
usize
&self
since_version
Version
max_bytes
usize