We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d578ba commit 36a661eCopy full SHA for 36a661e
src/generate/peripheral.rs
@@ -388,13 +388,15 @@ fn register_or_cluster_block(
388
have_accessors = true;
389
accessors.append(quote! {
390
#[doc = #comment]
391
+ #[inline(always)]
392
pub fn #name(&self) -> &#ty {
393
unsafe {
394
&*(((self as *const Self) as *const u8).add(#offset) as *const #ty)
395
}
396
397
398
399
400
pub fn #mut_name(&self) -> &mut #ty {
401
402
&mut *(((self as *const Self) as *mut u8).add(#offset) as *mut #ty)
0 commit comments