Module ops
Source Expand description
Overloadable operators.
Extends: std::{ops}
- Range
core
A range bounded inclusively below and exclusively above (start..end
).- RangeFrom
core
A range only bounded inclusively below (start..
).- RangeFull
core
An unbounded range (..
).- RangeInclusive
core
A range bounded inclusively below and above (start..=end
).- RangeTo
core
A range only bounded exclusively above (..end
).- RangeToInclusive
core
A range only bounded inclusively above (..=end
).
- Bound
core
An endpoint of a range of keys.- ControlFlow
core
Used to tell an operation whether it should exit early or go on as usual.
- Add
core
The addition operator +
.- AddAssign
core
The addition assignment operator +=
.- BitAnd
core
The bitwise AND operator &
.- BitAndAssign
core
The bitwise AND assignment operator &=
.- BitOr
core
The bitwise OR operator |
.- BitOrAssign
core
The bitwise OR assignment operator |=
.- BitXor
core
The bitwise XOR operator ^
.- BitXorAssign
core
The bitwise XOR assignment operator ^=
.- Deref
core
Used for immutable dereferencing operations, like *v
.- DerefMut
core
Used for mutable dereferencing operations, like in *v = 1;
.- Div
core
The division operator /
.- DivAssign
core
The division assignment operator /=
.- Drop
core
Custom code within the destructor.- Fn
core
The version of the call operator that takes an immutable receiver.- FnMut
core
The version of the call operator that takes a mutable receiver.- FnOnce
core
The version of the call operator that takes a by-value receiver.- Index
core
Used for indexing operations (container[index]
) in immutable contexts.- IndexMut
core
Used for indexing operations (container[index]
) in mutable contexts.- Mul
core
The multiplication operator *
.- MulAssign
core
The multiplication assignment operator *=
.- Neg
core
The unary negation operator -
.- Not
core
The unary logical negation operator !
.- RangeBounds
core
Implemented by Rust’s built-in range types- Rem
core
The remainder operator %
.- RemAssign
core
The remainder assignment operator %=
.- Sub
core
The subtraction operator -
.- SubAssign
core
The subtraction assignment operator -=
.