pub fn array_entry_type(&self) -> Result<BlockType, Error> {
        self.check_type(BlockType::ArrayValue)?;
        let array_type_raw = self.read_payload().array_entry_type();
        let array_type = BlockType::from_u8(array_type_raw)
            .ok_or_else(|| Error::InvalidBlockTypeNumber(self.index(), array_type_raw))?;
        if !array_type.is_valid_for_array() {
            return Err(Error::InvalidArrayType(self.index()));
        }
        Ok(array_type)
    }
/// Gets the type of each slot in an ARRAY_VALUE block.
Gets the type of each slot in an ARRAY_VALUE block.
Gets the type of each slot in an ARRAY_VALUE block .
pub fn array_entry_type(&self) -> Result<BlockType, Error> {
        self.check_type(BlockType::ArrayValue)?;
        let array_type_raw = self.read_payload().array_entry_type();
        let array_type = BlockType::from_u8(array_type_raw)
            .ok_or_else(|| Error::InvalidBlockTypeNumber(self.index(), array_type_raw))?;
        if !array_type.is_valid_for_array() {
            return Err(Error::InvalidArrayType(self.index()));
        }
        Ok(array_type)
    }
pub fn array_entry_type ( & self ) -> Result < BlockType , Error > { self . check_type ( BlockType :: ArrayValue ) ? ; let array_type_raw = self . read_payload ( ) . array_entry_type ( ) ; let array_type = BlockType :: from_u8 ( array_type_raw ) . ok_or_else ( | | Error :: InvalidBlockTypeNumber ( self . index ( ) , array_type_raw ) ) ? ; if ! array_type . is_valid_for_array ( ) { return Err ( Error :: InvalidArrayType ( self . index ( ) ) ) ; } Ok ( array_type ) }
Gets the type of each slot in an ARRAY_VALUE block.
Gets the type of each slot in an ARRAY_VALUE block .
&self
&self