Skip to content

Support #[derive(IntoBytes)] on unsized types #121

@joshlf

Description

@joshlf

See also: #2063 (comment)

Currently, the code generated by our IntoBytes derive includes calls to core::mem::size_of in order to determine whether a type has padding (unless the type is repr(transparent) or repr(packed)). This prevents deriving IntoBytes on unsized non-repr(transparent)/repr(packed) types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions