Introduce a StandardProperties trait.

This commit is contained in:
Tom Alexander
2023-09-23 17:33:46 -04:00
parent f0e28206ff
commit f180412ff3
3 changed files with 61 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ pub(crate) struct List<'parent, T> {
parent: Link<'parent, T>,
}
// TODO: Should I be defining a lifetime for T in the generics here? Ref: https://quinedot.github.io/rust-learning/dyn-elision-advanced.html#iteraction-with-type-aliases
type Link<'parent, T> = Option<&'parent List<'parent, T>>;
impl<'parent, T> List<'parent, T> {