pub fn node_data(block: &[u8]) -> Result<Option<&[u8]>, quick_protobuf::Error> {
    let doc = PBNode::try_from(block)?;
    Ok(match doc.Data {
        Some(Cow::Borrowed(slice)) => Some(slice),
        Some(Cow::Owned(_)) => unreachable!("never converted to owned"),
        None => None,
    })
}
/// Extracts the PBNode::Data field from the block as it appears on the block.
Extracts the PBNode::Data field from the block as it appears on the block.
Extracts the PBNode :: Data field from the block as it appears on the block .
pub fn node_data(block: &[u8]) -> Result<Option<&[u8]>, quick_protobuf::Error> {
    let doc = PBNode::try_from(block)?;
    Ok(match doc.Data {
        Some(Cow::Borrowed(slice)) => Some(slice),
        Some(Cow::Owned(_)) => unreachable!("never converted to owned"),
        None => None,
    })
}
pub fn node_data ( block : & [ u8 ] ) -> Result < Option < & [ u8 ] > , quick_protobuf :: Error > { let doc = PBNode :: try_from ( block ) ? ; Ok ( match doc . Data { Some ( Cow :: Borrowed ( slice ) ) => Some ( slice ) , Some ( Cow :: Owned ( _ ) ) => unreachable ! ( " " ) , None => None , } ) }
Extracts the PBNode::Data field from the block as it appears on the block.
Extracts the PBNode :: Data field from the block as it appears on the block .
block
&[u8]