We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oid
AsRef<[u8]>
Not entirely certain this makes sense, but it would allow avoiding a call to as_bytes when passing an Oid into functions taking in &[u8] generically.
as_bytes
&[u8]
Looking through std there's precedence in that str.as_bytes() and AsRef::<[u8]>::as_ref(str) are equivalent.
std
str.as_bytes()
AsRef::<[u8]>::as_ref(str)
The text was updated successfully, but these errors were encountered:
I'd be fine with adding an impl!
Sorry, something went wrong.
Cool, I'll probably get to it in the next day or so.
2e77aa4
Merge pull request #109 from Nemo157/oid_as_ref
5eb2825
Add `impl AsRef<[u8]> for Oid` (closes #108)
No branches or pull requests
Not entirely certain this makes sense, but it would allow avoiding a call to
as_bytes
when passing anOid
into functions taking in&[u8]
generically.Looking through
std
there's precedence in thatstr.as_bytes()
andAsRef::<[u8]>::as_ref(str)
are equivalent.The text was updated successfully, but these errors were encountered: