Sha256: 82264fefb5874154d4bffe46f48a32702ed5cd41abb5a2bcc6fcdcdc8bab4b0e
Contents?: true
Size: 634 Bytes
Versions: 251
Compression:
Stored size: 634 Bytes
Contents
#[allow(unused_variables)] pub struct School { } impl School { pub fn new() -> School { unimplemented!() } pub fn add(&mut self, grade: u32, student: &str) { unimplemented!() } pub fn grades(&self) -> Vec<u32> { unimplemented!() } // If grade returned an `Option<&Vec<String>>`, // the internal implementation would be forced to keep a `Vec<String>` to lend out. // By returning an owned vector instead, // the internal implementation is free to use whatever it chooses. pub fn grade(&self, grade: u32) -> Option<Vec<String>> { unimplemented!() } }
Version data entries
251 entries across 251 versions & 1 rubygems