/// Check that the block type is |block_type|
Check that the block type is |block_type|
Check that the block type is |block_type|
fn check_type(&self, block_type: BlockType) -> Result<(), Error> {
        if self.block_type() != block_type {
            Err(format_err!("Expected type {}, got type {}", block_type, self.block_type()))
        } else {
            Ok(())
        }
    }
fn check_type ( & self , block_type : BlockType ) -> Result < ( ) , Error > { if self . block_type ( ) != block_type { Err ( format_err ! ( " " block_type self block_type ( ) ) ) } else { Ok ( ( ) ) } }
Check that the block type is |block_type|
Check that the block type is |block_type|
&self
block_type
BlockType