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 fluid methods to PointerBuf #31

Open
chanced opened this issue May 8, 2024 · 0 comments
Open

Add fluid methods to PointerBuf #31

chanced opened this issue May 8, 2024 · 0 comments

Comments

@chanced
Copy link
Owner

chanced commented May 8, 2024

Add fluid methods to Pointer that mutate in place and return a new instance.

  • with token appended
  • with token prepended
  • with first token removed (maybe? - dont know whether to send the token into the void)
  • with last token removed (same ^^)

this is somewhat obnoxious to deal with:

let mut instance_location = self.instance_location.clone();
instance_location.push_back(instance.into());
let mut keyword_location = self.keyword_location.clone();
keyword_location.push_back(keyword.into());
@chanced chanced changed the title Add fluid methods to Pointer Add fluid methods to PointerBuf Jun 30, 2024
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

No branches or pull requests

1 participant