[][src]Function borsh::schema_helpers::try_from_slice_with_schema

pub fn try_from_slice_with_schema<T: BorshDeserialize + BorshSchema>(
    v: &[u8]
) -> Result<T>

Deserialize this instance from a slice of bytes, but assume that at the beginning we have bytes describing the schema of the type. We deserialize this schema and verify that it is correct.