operator
Rust >: compare against a lower limit
Use `>` to detect a value strictly above a threshold. Expected output (not executed): true Why: The temperature exceeds the warning threshold. Common mistake: A value exactly at the threshold gives false. Advanced connection: `std::cmp::PartialOrd::gt`.
Formal Syntax & Structure
rust syntaxrust
a > bWorking Example
Example Snippetrust
fn main() { let temperature = 32; let warning_limit = 30; println!("{}", temperature > warning_limit);}