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

slice of Hex #77

Open
yegor256 opened this issue Jan 14, 2023 · 4 comments
Open

slice of Hex #77

yegor256 opened this issue Jan 14, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@yegor256
Copy link
Member

yegor256 commented Jan 14, 2023

Let's add a new functionality of slicing to Hex, which should take a part of the data and return a new Hex:

let a = Hex::from_str_bytes("Hello, world!");
let b = a[5..];
println!("{b}");

Should print , world!.

It should be very similar to how slicing works for strings in Rust.

@yegor256 yegor256 changed the title Hex::slice() slice of Hex Jan 14, 2023
@yegor256 yegor256 added the enhancement New feature or request label Jan 14, 2023
@yegor256
Copy link
Member Author

@UARTman can you help with this please?

@l3r8yJ
Copy link
Contributor

l3r8yJ commented Feb 27, 2023

this one is closed, isn't it?

@yegor256
Copy link
Member Author

yegor256 commented Mar 1, 2023

@l3r8yJ I don't think it's solved, I don't see any tests for it. Do you?

@l3r8yJ
Copy link
Contributor

l3r8yJ commented Mar 1, 2023

@yegor256 then I'll take it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants