Question : ..= in rust
Answered by : himanshu-jangid
..= ..=expr, expr..=expr Right-inclusive range literal PartialOrd
..= is an operator that is used to generate ranges
Source : | Last Update : Mon, 25 Jul 22
Question : what is () in rust
Answered by : ahmad-khaefi
// The () type, also called “unit”.
// The () type has exactly one value (),
// and is used when there is no other meaningful value that could be returned:
fn long() -> () {}
fn short() {}
Source : | Last Update : Wed, 22 Jun 22