Sha256: 6da60f8aa3f74e9dc9bfe6301c4cb6d94fe16efb9a4d820200ea61206c09914a
Contents?: true
Size: 884 Bytes
Versions: 57
Compression:
Stored size: 884 Bytes
Contents
pub struct SimpleLinkedList<T> { // Delete this field // _dummy is needed to avoid unused parameter error during compilation _dummy: T, } impl<T> SimpleLinkedList<T> { pub fn new() -> Self { unimplemented!() } pub fn len(&self) -> usize { unimplemented!() } pub fn push(&mut self, element: T) { unimplemented!() } pub fn pop(&mut self) -> Option<T> { unimplemented!() } pub fn peek(&self) -> Option<&T> { unimplemented!() } } impl<T: Clone> SimpleLinkedList<T> { pub fn rev(&self) -> SimpleLinkedList<T> { unimplemented!() } } impl<'a, T: Clone> From<&'a [T]> for SimpleLinkedList<T> { fn from(item: &[T]) -> Self { unimplemented!() } } impl<T> Into<Vec<T>> for SimpleLinkedList<T> { fn into(mut self) -> Vec<T> { unimplemented!() } }
Version data entries
57 entries across 57 versions & 1 rubygems