pub fn end(&mut self) -> Result<(), crate::Error> {
        if self.can_end() {
            Ok(())
        } else {
            Err(crate::Error::custom(&"the end of the stream"))
        }
    }
/**
    Complete the stack.

    This stack may be re-used after being completed
    by calling `begin`.
    */
Complete the stack.
This stack may be re-used after being completed
by calling `begin`.
Complete the stack . This stack may be re - used after being completed by calling ` begin ` .
pub fn end(&mut self) -> Result<(), crate::Error> {
        if self.can_end() {
            Ok(())
        } else {
            Err(crate::Error::custom(&"the end of the stream"))
        }
    }
pub fn end ( & mut self ) -> Result < ( ) , crate :: Error > { if self . can_end ( ) { Ok ( ( ) ) } else { Err ( crate :: Error :: custom ( & " " ) ) } }
Complete the stack.
Complete the stack .
&mut self