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 d0739ec commit 8b2cab5Copy full SHA for 8b2cab5
src/generate/generic_reg_vcell.rs
@@ -164,7 +164,7 @@ impl<REG: Writable> Reg<REG> {
164
///
165
/// Unsafe to use with registers which don't allow to write 0.
166
#[inline(always)]
167
- pub unsafe fn write_with_zero<F, T>(&self, f: F) -> T
+ pub unsafe fn write_with_zero_and<F, T>(&self, f: F) -> T
168
where
169
F: FnOnce(&mut W<REG>) -> T,
170
{
0 commit comments