pub fn seq_begin(&mut self) -> Result<Pos, crate::Error> {
        let curr = self.inner.current();

        // The current slot must:
        // - not be done and
        // - be the root or
        // - be a map key or
        // - be a map value or
        // - be a seq element

        match curr.0 {
            Slot::ROOT | Slot::MAP_KEY | Slot::MAP_VAL | Slot::SEQ_ELEM => {
                self.inner.push_depth()?;
                self.inner.current_mut().0 = Slot::SEQ_DONE;

                Ok(curr.pos(self.inner.depth()))
            }
            _ => Err(crate::Error::custom(expecting!(curr, "seq begin"))),
        }
    }
/**
    Begin a new sequence.

    the sequence must be completed by calling `seq_end`.
    */
Begin a new sequence.
the sequence must be completed by calling `seq_end`.
Begin a new sequence . the sequence must be completed by calling ` seq_end ` .
pub fn seq_begin(&mut self) -> Result<Pos, crate::Error> {
        let curr = self.inner.current();
        // The current slot must:
        // - not be done and
        // - be the root or
        // - be a map key or
        // - be a map value or
        // - be a seq element
        match curr.0 {
            Slot::ROOT | Slot::MAP_KEY | Slot::MAP_VAL | Slot::SEQ_ELEM => {
                self.inner.push_depth()?;
                self.inner.current_mut().0 = Slot::SEQ_DONE;
                Ok(curr.pos(self.inner.depth()))
            }
            _ => Err(crate::Error::custom(expecting!(curr, "seq begin"))),
        }
    }
pub fn seq_begin ( & mut self ) -> Result < Pos , crate :: Error > { let curr = self . inner . current ( ) ; // The current slot must: // - not be done and // - be the root or // - be a map key or // - be a map value or // - be a seq element match curr . 0 { Slot :: ROOT | Slot :: MAP_KEY | Slot :: MAP_VAL | Slot :: SEQ_ELEM => { self . inner . push_depth ( ) ? ; self . inner . current_mut ( ) . 0 = Slot :: SEQ_DONE ; Ok ( curr . pos ( self . inner . depth ( ) ) ) } _ => Err ( crate :: Error :: custom ( expecting ! ( curr " " ) ) ) , } }
Begin a new sequence.
Begin a new sequence .
&mut self