/// Read the next line and check if it's a valid VCALENDAR start.
Read the next line and check if it's a valid VCALENDAR start.
Read the next line and check if it ' s a valid VCALENDAR start .
fn check_header(&mut self) -> Result<Option<()>, ParserError> {
        let line = match self.line_parser.borrow_mut().next() {
            Some(val) => val.map_err(|e| ParserError::PropertyError(e))?,
            None => return Ok(None),
        };
        if line.name != "BEGIN"
            || line.value.is_none()
            || line.value.unwrap() != "VCALENDAR"
            || line.params != None
        {
            return Err(ParserError::MissingHeader.into());
        }
        Ok(Some(()))
    }
fn check_header ( & mut self ) -> Result < Option < ( ) > , ParserError > { let line = match self . line_parser . borrow_mut ( ) . next ( ) { Some ( val ) => val . map_err ( | e | ParserError :: PropertyError ( e ) ) ? , None => return Ok ( None ) , } ; if line . name != " " || line . value . is_none ( ) || line . value . unwrap ( ) != " " || line . params != None { return Err ( ParserError :: MissingHeader . into ( ) ) ; } Ok ( Some ( ( ) ) ) }
Read the next line and check if it's a valid VCALENDAR start.
Read the next line and check if it ' s a valid VCALENDAR start .
&mut self