Skip to content
New issue

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

Add conversions from bytes #55

Merged
merged 1 commit into from
Dec 13, 2022
Merged

Add conversions from bytes #55

merged 1 commit into from
Dec 13, 2022

Conversation

andreiltd
Copy link
Contributor

No description provided.

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated
}
}

impl TryFrom<&[u8]> for Ulid {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove in favor of letting the caller assert the length. We can add docs similar to https://doc.rust-lang.org/nightly/std/primitive.u128.html#method.from_be_bytes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed, where do we want the docs for this one, from_bytes ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be a good spot, going to merge as-is though.

src/lib.rs Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
@dylanhart dylanhart merged commit c2e97d8 into dylanhart:master Dec 13, 2022
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.

None yet

2 participants