fn bytes_to_trim(&self, x: usize) -> usize {
        let b = x % self.isize;
        if b == 0 {
            return 0;
        }
        let b = self.isize - b;
        let bits_per_unit = self.osize * 8;
        let in_bits_per_char = bits_per_unit / self.isize;
        self.osize - (bits_per_unit - b * in_bits_per_char) / 8
    }
/// Returns the number of bytes to trim off a complete unit, given a number of input bytes
/// excluding pad bytes.
Returns the number of bytes to trim off a complete unit, given a number of input bytes
excluding pad bytes.
Returns the number of bytes to trim off a complete unit given a number of input bytes excluding pad bytes .
fn bytes_to_trim(&self, x: usize) -> usize {
        let b = x % self.isize;
        if b == 0 {
            return 0;
        }
        let b = self.isize - b;
        let bits_per_unit = self.osize * 8;
        let in_bits_per_char = bits_per_unit / self.isize;
        self.osize - (bits_per_unit - b * in_bits_per_char) / 8
    }
fn bytes_to_trim ( & self , x : usize ) -> usize { let b = x % self . isize ; if b == 0 { return 0 ; } let b = self . isize - b ; let bits_per_unit = self . osize * 8 ; let in_bits_per_char = bits_per_unit / self . isize ; self . osize - ( bits_per_unit - b * in_bits_per_char ) / 8 }
Returns the number of bytes to trim off a complete unit, given a number of input bytes
excluding pad bytes.
Returns the number of bytes to trim off a complete unit given a number of input bytes excluding pad bytes .
&self
x
usize
&self
x
usize