pub fn delete_zero_length_streams(&mut self) -> Vec<ObjectId> {
        let mut ids = vec![];
        for id in self.objects.keys() {
            if self
                .objects
                .get(id)
                .and_then(|o| Object::as_stream(o).ok())
                .map(|stream| stream.content.is_empty())
                .unwrap_or(false)
            {
                ids.push(*id);
            }
        }

        for id in &ids {
            self.delete_object(*id);
        }

        ids
    }
/// Delete zero length stream objects.
Delete zero length stream objects.
Delete zero length stream objects .
pub fn delete_zero_length_streams(&mut self) -> Vec<ObjectId> {
        let mut ids = vec![];
        for id in self.objects.keys() {
            if self
                .objects
                .get(id)
                .and_then(|o| Object::as_stream(o).ok())
                .map(|stream| stream.content.is_empty())
                .unwrap_or(false)
            {
                ids.push(*id);
            }
        }
        for id in &ids {
            self.delete_object(*id);
        }
        ids
    }
pub fn delete_zero_length_streams ( & mut self ) -> Vec < ObjectId > { let mut ids = vec ! [ ] ; for id in self . objects . keys ( ) { if self . objects . get ( id ) . and_then ( | o | Object :: as_stream ( o ) . ok ( ) ) . map ( | stream | stream . content . is_empty ( ) ) . unwrap_or ( false ) { ids . push ( * id ) ; } } for id in & ids { self . delete_object ( * id ) ; } ids }
Delete zero length stream objects.
Delete zero length stream objects .
&mut self
&mut self