Sha256: f433da040bf57d33d3fa07cddc32c760dadc0500768ed38b58706b76dc38d6a7

Contents?: true

Size: 197 Bytes

Versions: 114

Compression:

Stored size: 197 Bytes

Contents

//! Example implementation for reverse-string

pub fn reverse(input: &str) -> String {
    let mut output = String::with_capacity(input.len());
    output.extend(input.chars().rev());
    output
}

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.179 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.178 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.177 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.176 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.175 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.174 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.173 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.172 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.171 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.170 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.169 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.167 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.166 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.165 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.164 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.163 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.162 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.161 tracks/rust/exercises/reverse-string/example.rs
trackler-2.2.1.160 tracks/rust/exercises/reverse-string/example.rs