Implement as_vec for OID #22
Reference in New Issue
Block a user
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Change-Id: I29d59b77b541454007343488f8f809c3052ad3e3
Cool, thanks for the patch!
I'm curious, though, about why do this as a specific method, rather than as an instance of
TryFrom?TryFrommight require inventing an overflow error of some sort, but would fit into the general scheme. You might be able to do something fancy withToPrimitiveto allow people to also convert to other primitive types (i64,usize,etc.)Oh, and maybe we can do away with the indexing in the loop:
Thanks for review.
Updated as you suggested.
Awesome!
I've pushed this to
crates.ioas 0.5.3, if you're using it in a project somewhere. Thanks again!