Rust operators: Difference between revisions

From wikinotes
(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 -->")
(No difference)

Revision as of 04:51, 11 February 2023

Arithmetic

Result Operators

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

Operator Overloading