Skip to content

Evaluate, Discuss + Document role of "alloc" feature in Crate #1303

Closed
@phip1611

Description

@phip1611

As pointed out in #1297 (comment), we should discuss our strategy regarding the alloc feature and its priority when creating user API. This should also be documented, once we discussed and agreed on a strategy.

TL;DR: Should we provide interfaces primarily like A, B, or C.

  • A: fn get_data(&self) -> Result<Vec<T>> which is feature-gated
  • B: fn get_data(&self, buf: &mut T) -> Result<()>
  • C: Both where either A or B is prefixed/suffixed, such as _in_buffer or _owned

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