Skip to content

Why do _as_c_str methods for static arrays return Result? #990

@interacsion

Description

@interacsion

#746 makes _as_c_str methods that are backed by a statically sized array return Result<&CStr, FromBytesUntilNulError> instead of &CStr. I believe the spec guarantees these members are null-terminated UTF-8 strings. Shouldn't the API reflect this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions