Module no_std_compat2::ops
source · Available on non-crate feature
std only.Structs
- YeetExperimentalImplement
FromResidual<Yeet<T>>on your type to enabledo yeet exprsyntax in functions returning your type. - A (half-open) range bounded inclusively below and exclusively above (
start..end). - A range only bounded inclusively below (
start..). - An unbounded range (
..). - A range bounded inclusively below and above (
start..=end). - A range only bounded exclusively above (
..end). - A range only bounded inclusively above (
..=end).
Enums
- GeneratorStateExperimentalThe result of a generator resumption.
- An endpoint of a range of keys.
- Used to tell an operation whether it should exit early or go on as usual.
Traits
- CoerceUnsizedExperimentalTrait that indicates that this is a pointer or a wrapper for one, where unsizing can be performed on the pointee.
- DispatchFromDynExperimental
DispatchFromDynis used in the implementation of object safety checks (specifically allowing arbitrary self types), to guarantee that a method’s receiver type can be dispatched on. - FromResidualExperimentalUsed to specify which residuals can be converted into which
crate::ops::Trytypes. - GeneratorExperimentalThe trait implemented by builtin generator types.
- OneSidedRangeExperimental
OneSidedRangeis implemented for built-in range types that are unbounded on one side. For example,a..,..band..=cimplementOneSidedRange, but..,d..e, andf..=gdo not. - ResidualExperimentalAllows retrieving the canonical type implementing
Trythat has this type as its residual and allows it to hold anOas its output. - TryExperimentalThe
?operator andtry {}blocks. - The addition operator
+. - The addition assignment operator
+=. - The bitwise AND operator
&. - The bitwise AND assignment operator
&=. - The bitwise OR operator
|. - The bitwise OR assignment operator
|=. - The bitwise XOR operator
^. - The bitwise XOR assignment operator
^=. - Used for immutable dereferencing operations, like
*v. - Used for mutable dereferencing operations, like in
*v = 1;. - The division operator
/. - The division assignment operator
/=. - Custom code within the destructor.
- The version of the call operator that takes an immutable receiver.
- The version of the call operator that takes a mutable receiver.
- The version of the call operator that takes a by-value receiver.
- Used for indexing operations (
container[index]) in immutable contexts. - Used for indexing operations (
container[index]) in mutable contexts. - The multiplication operator
*. - The multiplication assignment operator
*=. - The unary negation operator
-. - The unary logical negation operator
!. RangeBoundsis implemented by Rust’s built-in range types, produced by range syntax like..,a..,..b,..=c,d..e, orf..=g.- The remainder operator
%. - The remainder assignment operator
%=. - The left shift operator
<<. Note that because this trait is implemented for all integer types with multiple right-hand-side types, Rust’s type checker has special handling for_ << _, setting the result type for integer operations to the type of the left-hand-side operand. This means that thougha << banda.shl(b)are one and the same from an evaluation standpoint, they are different when it comes to type inference. - The left shift assignment operator
<<=. - The right shift operator
>>. Note that because this trait is implemented for all integer types with multiple right-hand-side types, Rust’s type checker has special handling for_ >> _, setting the result type for integer operations to the type of the left-hand-side operand. This means that thougha >> banda.shr(b)are one and the same from an evaluation standpoint, they are different when it comes to type inference. - The right shift assignment operator
>>=. - The subtraction operator
-. - The subtraction assignment operator
-=.