For example, why is there COption when compared to the Native Rust primitives and the Rust native Option?

What's the advantage of having this?

1 Answer 1


The concept was to allow for programs written in C to easily interact with SPL programs. COption works nicely with a tagged union in C, where the enum discriminant is 4 bytes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.