pub fn remove(&mut self, idx: u32) -> Option<CompatDescriptor> {
        let mut maybe_descriptor = self.descriptors.remove(&idx);
        self.available_indices.insert(idx);
        self.trim_tail();
        if let Some(descriptor) = &mut maybe_descriptor {
            descriptor.set_handle(0);
        }
        maybe_descriptor
    }
/// Remove the descriptor at the given index and return it.
Remove the descriptor at the given index and return it.
Remove the descriptor at the given index and return it .
pub fn remove(&mut self, idx: u32) -> Option<CompatDescriptor> {
        let mut maybe_descriptor = self.descriptors.remove(&idx);
        self.available_indices.insert(idx);
        self.trim_tail();
        if let Some(descriptor) = &mut maybe_descriptor {
            descriptor.set_handle(0);
        }
        maybe_descriptor
    }
pub fn remove ( & mut self , idx : u32 ) -> Option < CompatDescriptor > { let mut maybe_descriptor = self . descriptors . remove ( & idx ) ; self . available_indices . insert ( idx ) ; self . trim_tail ( ) ; if let Some ( descriptor ) = & mut maybe_descriptor { descriptor . set_handle ( 0 ) ; } maybe_descriptor }
Remove the descriptor at the given index and return it.
Remove the descriptor at the given index and return it .
&mut self
idx
u32
&mut self
idx
u32