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 e131ae7 commit 7dc7a7bCopy full SHA for 7dc7a7b
src/can/id.rs
@@ -24,6 +24,9 @@ impl StandardId {
24
}
25
26
/// Creates a new `StandardId` without checking if it is inside the valid range.
27
+ ///
28
+ /// # Safety
29
+ /// Using this method can create an invalid ID and is thus marked as unsafe.
30
#[inline]
31
pub const unsafe fn new_unchecked(raw: u16) -> Self {
32
Self(raw)
@@ -60,6 +63,9 @@ impl ExtendedId {
60
63
61
64
62
65
/// Creates a new `ExtendedId` without checking if it is inside the valid range.
66
67
68
69
70
pub const unsafe fn new_unchecked(raw: u32) -> Self {
71
0 commit comments