Rust operators

From wikinotes
Revision as of 04:51, 11 February 2023 by Will (talk | contribs) (Created page with "= Arithmetic = <blockquote> </blockquote><!-- Arithmetic --> = Result Operators = <blockquote> <syntaxhighlight lang="rust"> let foo = get_result()?; // bind 'Ok-val' to foo, if 'Err-val', return-early with Err(Err-val) </syntaxhighlight> </blockquote><!-- Result Operators --> = Operator Overloading = <blockquote> </blockquote><!-- Operator Overloading -->")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Arithmetic

Result Operators

let foo = get_result()?;  // bind 'Ok-val' to foo, if 'Err-val', return-early with Err(Err-val)

Operator Overloading