Skip to content

Instantly share code, notes, and snippets.

@0ex-d
Created January 22, 2025 01:24
Show Gist options
  • Save 0ex-d/b0614ae474fa58a28b5c85a6e9c4ced9 to your computer and use it in GitHub Desktop.
Save 0ex-d/b0614ae474fa58a28b5c85a6e9c4ced9 to your computer and use it in GitHub Desktop.
A two-way stack
#[derive(Debug)]
pub struct Stack<L1, L2> {
l1: L1,
l2: L2,
}
impl<L1, L2> Stack<L1, L2> {
const fn new(l1: L1, l2: L2) -> Self {
Self { l1, l2 }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment