File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -2967,8 +2967,8 @@ _panicked state_.
2967
2967
2968
2968
### Unary operator expressions
2969
2969
2970
- Rust defines six symbolic unary operators. They are all written as prefix
2971
- operators, before the expression they apply to.
2970
+ Rust defines three unary operators. They are all written as prefix operators,
2971
+ before the expression they apply to.
2972
2972
2973
2973
* ` - `
2974
2974
: Negation. May only be applied to numeric types.
@@ -2986,13 +2986,6 @@ operators, before the expression they apply to.
2986
2986
: Logical negation. On the boolean type, this flips between ` true ` and
2987
2987
` false ` . On integer types, this inverts the individual bits in the
2988
2988
two's complement representation of the value.
2989
- * ` box `
2990
- : [ Boxing] ( #pointer-types ) operators. Allocate a box to hold the value they
2991
- are applied to, and store the value in it. ` box ` creates a box.
2992
- * ` & `
2993
- : Borrow operator. Returns a reference, pointing to its operand. The operand
2994
- of a borrow is statically proven to outlive the resulting pointer. If the
2995
- borrow-checker cannot prove this, it is a compilation error.
2996
2989
2997
2990
### Binary operator expressions
2998
2991
You can’t perform that action at this time.
0 commit comments