pub fn pop_front(& mut self) -> Option<u8> {
        if self.is_empty() {
            Option::None
        }
        else {
            let res = self.buf;
            self.buf = res >> 8;
            self.mylen -= 1;
            Option::Some(res as u8)
        }
    }
/// Removes the first element and return it.
/// 'None' is returned if buffer is empty.

Removes the first element and return it.
'None' is returned if buffer is empty.
Removes the first element and return it . ' None ' is returned if buffer is empty .
pub fn pop_front(& mut self) -> Option<u8> {
        if self.is_empty() {
            Option::None
        }
        else {
            let res = self.buf;
            self.buf = res >> 8;
            self.mylen -= 1;
            Option::Some(res as u8)
        }
    }
pub fn pop_front ( & mut self ) -> Option < u8 > { if self . is_empty ( ) { Option :: None } else { let res = self . buf ; self . buf = res >> 8 ; self . mylen -= 1 ; Option :: Some ( res as u8 ) } }
Removes the first element and return it.
Removes the first element and return it .
& mut self
& mut self