Closed Rantanen closed 4 years ago
ComRc/ComItf and such should be non-null pointers. Instead there should be support in wrapping these in Option<..> for parameters/return values.
ComRc
ComItf
Option<..>
Things that should be done at least:
InterfacePtr
NonNull<ptr>
#[repr(transparent)]
Option<InterfacePtr>
ExternInput
ExternOutput
Option<ComRc>
Option<&ComItf>
.. and check what else needs to be done.
ComRc
/ComItf
and such should be non-null pointers. Instead there should be support in wrapping these inOption<..>
for parameters/return values.Things that should be done at least:
InterfacePtr
intoNonNull<ptr>
InterfacePtr
into#[repr(transparent)]
InterfacePtr
and turn that intoOption<InterfacePtr>
as required.ExternInput
/ExternOutput
forOption<ComRc>
/Option<&ComItf>
and hope the type system can handle that without much trouble... and check what else needs to be done.