### Background

When debugging, one usually needs to inspect the value of an object. For 
exactly this purpose, Rust offers the ability to implementing or automatically 
deriving Debug traits for user-defined types. Rust programmers have taken this 
godsend feature for granted.

### Problem

However, the SGX-related types defined in sgx_types crate do not have Debug 
trait implemented or derived. This makes it really cumbersome to debug values 
of SGX types. This absence of Debug trait for basic types also deviates the 
practice in Rust std crate, where (almost) all types support Debug traits. 
Moreover, due to Rust's the orphan rule, it is impossible for the users of Rust 
SGX SDK to manually implement Debug trait for SGX types defined in sgx_types 
crate.

### Feature Request

For the reasons above, I hope that Debug trait to be implemented (most can be 
derived automatically) for all SGX types defined in sgx_types. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/229

Reply via email to