pub fn add(&mut self, entry: Descriptor) -> Result<u16, DTError> {
        if self.cur >= LEN - 1 {
            return Err(DTError::Overflow);
        }
        
        self.table[self.cur as usize] = entry;
        self.cur += 1;
        Ok(self.cur as u16 - 1)
    }
/// Add an entry to this descriptor table
Add an entry to this descriptor table
Add an entry to this descriptor table
pub fn add(&mut self, entry: Descriptor) -> Result<u16, DTError> {
        if self.cur >= LEN - 1 {
            return Err(DTError::Overflow);
        }
        self.table[self.cur as usize] = entry;
        self.cur += 1;
        Ok(self.cur as u16 - 1)
    }
pub fn add ( & mut self , entry : Descriptor ) -> Result < u16 , DTError > { if self . cur >= LEN - 1 { return Err ( DTError :: Overflow ) ; } self . table [ self . cur as usize ] = entry ; self . cur += 1 ; Ok ( self . cur as u16 - 1 ) }
Add an entry to this descriptor table
Add an entry to this descriptor table
&mut self
entry
Descriptor