File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,7 @@ impl VirtAddr {
236
236
}
237
237
238
238
// FIXME: Move this into the `Step` impl, once `Step` is stabilized.
239
+ #[ inline]
239
240
pub ( crate ) fn forward_checked_impl ( start : Self , count : usize ) -> Option < Self > {
240
241
let offset = u64:: try_from ( count) . ok ( ) ?;
241
242
if offset > ADDRESS_SPACE_SIZE {
@@ -343,14 +344,17 @@ impl Sub<VirtAddr> for VirtAddr {
343
344
344
345
#[ cfg( feature = "step_trait" ) ]
345
346
impl Step for VirtAddr {
347
+ #[ inline]
346
348
fn steps_between ( start : & Self , end : & Self ) -> Option < usize > {
347
349
Self :: steps_between_impl ( start, end)
348
350
}
349
351
352
+ #[ inline]
350
353
fn forward_checked ( start : Self , count : usize ) -> Option < Self > {
351
354
Self :: forward_checked_impl ( start, count)
352
355
}
353
356
357
+ #[ inline]
354
358
fn backward_checked ( start : Self , count : usize ) -> Option < Self > {
355
359
let offset = u64:: try_from ( count) . ok ( ) ?;
356
360
if offset > ADDRESS_SPACE_SIZE {
You can’t perform that action at this time.
0 commit comments