File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 232
232
//! - `&`, `&mut`, `addr_of!`, and `addr_of_mut!` all work to create their associated rvalue.
233
233
//! - [`Discriminant`] and [`Len`] have associated functions.
234
234
//! - Unary and binary operations use their normal Rust syntax - `a * b`, `!c`, etc.
235
+ //! - The binary operation `Offset` can be created via [`Offset`].
235
236
//! - Checked binary operations are represented by wrapping the associated binop in [`Checked`].
236
237
//! - Array repetition syntax (`[foo; 10]`) creates the associated rvalue.
237
238
//!
@@ -289,6 +290,7 @@ define!(
289
290
fn Discriminant <T >( place: T ) -> <T as :: core:: marker:: DiscriminantKind >:: Discriminant
290
291
) ;
291
292
define ! ( "mir_set_discriminant" , fn SetDiscriminant <T >( place: T , index: u32 ) ) ;
293
+ define ! ( "mir_offset" , fn Offset <T , U >( ptr: T , count: U ) -> T ) ;
292
294
define ! (
293
295
"mir_field" ,
294
296
/// Access the field with the given index of some place.
You can’t perform that action at this time.
0 commit comments