/// Tries to push a given item into the queue
/// # Arguments
/// * `item`: The item to push
///
/// Will Result Err(QueueErr::Full) if the queue is full
Tries to push a given item into the queue
Tries to push a given item into the queue
pub fn push(&mut self, item: Ty) -> Result<(), QueueErr>
    {
        let next_end = (self.end + 1) % SIZE;
        if next_end == self.start
        {
            return Err(QueueErr::QueueFull);
        }
        self.buff[self.end] = Some(item);
        self.end = next_end;
        Ok(())
    }
pub fn push ( & mut self , item : Ty ) -> Result < ( ) , QueueErr > { let next_end = ( self . end + 1 ) % SIZE ; if next_end == self . start { return Err ( QueueErr :: QueueFull ) ; } self . buff [ self . end ] = Some ( item ) ; self . end = next_end ; Ok ( ( ) ) }
Tries to push a given item into the queue
Tries to push a given item into the queue
&mut self
item
Ty