pub fn new(slice: &'a [u8]) -> Result<Vout<'a>, SPVError> {
        if crate::btcspv::validate_vout(slice) {
            Ok(Self(slice))
        } else {
            Err(SPVError::InvalidVout)
        }
    }
/// Instantiate a new `Vout` from a slice, if the slice is a valid `Vout`
Instantiate a new `Vout` from a slice, if the slice is a valid `Vout`
Instantiate a new ` Vout ` from a slice if the slice is a valid ` Vout `
pub fn new(slice: &'a [u8]) -> Result<Vout<'a>, SPVError> {
        if crate::btcspv::validate_vout(slice) {
            Ok(Self(slice))
        } else {
            Err(SPVError::InvalidVout)
        }
    }
pub fn new ( slice : & ' a [ u8 ] ) -> Result < Vout < ' a > , SPVError > { if crate :: btcspv :: validate_vout ( slice ) { Ok ( Self ( slice ) ) } else { Err ( SPVError :: InvalidVout ) } }
Instantiate a new `Vout` from a slice, if the slice is a valid `Vout`
Instantiate a new ` Vout ` from a slice if the slice is a valid ` Vout `
slice
&'a [u8]
slice
&'a [u8]