Skip to content

Return MaybeUninit<u8> rather than u8 #66

Closed
@TimDiekmann

Description

@TimDiekmann

We should considor to return MaybeUninit at allocating methods. While it's unsafe to dereference pointers and the caller has to ensure the validity of the pointer anyway, it's an hint, that the memory may be uninitialized. I don't expect much effect to the end user, as in most cases, the returned pointer will be casted anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Alloc TraitIssues regarding the Alloc trait

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions