Skip to content

Derive AnyBitPattern for ColorU8 #120

@Pr0methean

Description

@Pr0methean

If ColorU8 derived AnyBitPattern, I'd be able to replace the transmute calls in this method with bytemuck's cast and remove the unsafe code. This will be possible even if bytemuck becomes an optional dependency; it'll just have to be guarded by cfg_attr.

https://github.com/Pr0methean/OcHd-RustBuild/blob/main/main/src/image_tasks/png_output.rs#L312-L324

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