Skip to content

Implement From<&[u8]> for binary - #757

Merged
filmor merged 3 commits into
rusterlium:masterfrom
hauleth:push-pmwzwkxtotru
Aug 25, 2026
Merged

Implement From<&[u8]> for binary#757
filmor merged 3 commits into
rusterlium:masterfrom
hauleth:push-pmwzwkxtotru

Conversation

@hauleth

@hauleth hauleth commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

This allows for simpler work with binaries that aren't UTF-8 encoded
strings. Currently there is either need to construct such data in place
(which limits usage of some Rust libraries) or you need to write
additional code to translate one form into another. This implementation
is simple and performant enough for this usecase.

Comment thread rustler/src/types/binary.rs Outdated
Comment thread rustler/src/types/binary.rs Outdated
@hauleth
hauleth force-pushed the push-pmwzwkxtotru branch from 3616935 to 2ee48f8 Compare August 25, 2026 14:10
Comment thread rustler_tests/lib/rustler_test.ex
Comment thread rustler/src/types/binary.rs
This allows for simpler work with binaries that aren't UTF-8 encoded
strings. Currently there is either need to construct such data in place
(which limits usage of some Rust libraries) or you need to write
additional code to translate one form into another. This implementation
is simple and performant enough for this usecase.
@hauleth
hauleth force-pushed the push-pmwzwkxtotru branch from 2ee48f8 to c44d546 Compare August 25, 2026 17:48
@filmor
filmor merged commit d9e5795 into rusterlium:master Aug 25, 2026
Comment thread rustler/src/types/binary.rs
@hauleth
hauleth deleted the push-pmwzwkxtotru branch August 25, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants