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

Version Path
trackler-2.2.1.129 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.128 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.127 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.126 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.125 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.124 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.123 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.122 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.121 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.120 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.119 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.118 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.117 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.116 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.115 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.114 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.113 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.111 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.110 tracks/rust/exercises/simple-linked-list/src/lib.rs
trackler-2.2.1.109 tracks/rust/exercises/simple-linked-list/src/lib.rs