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.
2 parents 1439504 + 215d7b4 commit 800eefdCopy full SHA for 800eefd
1 file changed
embedded-can/src/id.rs
@@ -34,7 +34,7 @@ impl StandardId {
34
35
/// Returns this CAN Identifier as a raw 16-bit integer.
36
#[inline]
37
- pub fn as_raw(&self) -> u16 {
+ pub const fn as_raw(&self) -> u16 {
38
self.0
39
}
40
@@ -73,7 +73,7 @@ impl ExtendedId {
73
74
/// Returns this CAN Identifier as a raw 32-bit integer.
75
76
- pub fn as_raw(&self) -> u32 {
+ pub const fn as_raw(&self) -> u32 {
77
78
79
0 commit comments