fn try_rotate(&mut self) -> bool {
        if let Some((size, counter)) = &mut self.target_size_and_counter {
            if self.written_size >= *size {
                counter.inc();
                self.written_size = 0;
                return true;
            }
        }
        false
    }
/// Checks if the current written size exceeds the size limit.
Checks if the current written size exceeds the size limit.
Checks if the current written size exceeds the size limit .
fn try_rotate(&mut self) -> bool {
        if let Some((size, counter)) = &mut self.target_size_and_counter {
            if self.written_size >= *size {
                counter.inc();
                self.written_size = 0;
                return true;
            }
        }
        false
    }
fn try_rotate ( & mut self ) -> bool { if let Some ( ( size , counter ) ) = & mut self . target_size_and_counter { if self . written_size >= * size { counter . inc ( ) ; self . written_size = 0 ; return true ; } } false }
Checks if the current written size exceeds the size limit.
Checks if the current written size exceeds the size limit .
&mut self
&mut self