@@ -79,8 +79,9 @@ impl Mask16 {
79
79
/// Creates a 16-bit identifier mask that accepts all frames with the given standard
80
80
/// ID and mask combination.
81
81
///
82
- /// Filter logic: frame_accepted = (incoming_id & mask) == (id & mask)
83
- /// A mask of all all ones (0x7FF) matches the exact ID, a mask of 0 matches all IDs.
82
+ /// Filter logic: `frame_accepted = (incoming_id & mask) == (id & mask)`
83
+ ///
84
+ /// A mask of all all ones (`0x7FF`) matches an exact ID, a mask of 0 matches all IDs.
84
85
///
85
86
/// Both data and remote frames with `id` will be accepted. Any extended frames will be
86
87
/// rejected.
@@ -117,8 +118,9 @@ impl Mask32 {
117
118
/// Creates a 32-bit identifier mask that accepts all frames with the given extended
118
119
/// ID and mask combination.
119
120
///
120
- /// Filter logic: frame_accepted = (incoming_id & mask) == (id & mask)
121
- /// A mask of all all ones (0x1FFF_FFFF) matches the exact ID, a mask of 0 matches all IDs.
121
+ /// Filter logic: `frame_accepted = (incoming_id & mask) == (id & mask)`
122
+ ///
123
+ /// A mask of all all ones (`0x1FFF_FFFF`) matches an exact ID, a mask of 0 matches all IDs.
122
124
///
123
125
/// Both data and remote frames with `id` will be accepted. Standard frames will be rejected.
124
126
pub fn frames_with_ext_id ( id : ExtendedId , mask : ExtendedId ) -> Self {
@@ -131,8 +133,9 @@ impl Mask32 {
131
133
/// Creates a 32-bit identifier mask that accepts all frames with the given standard
132
134
/// ID and mask combination.
133
135
///
134
- /// Filter logic: frame_accepted = (incoming_id & mask) == (id & mask)
135
- /// A mask of all all ones (0x7FF) matches the exact ID, a mask of 0 matches all IDs.
136
+ /// Filter logic: `frame_accepted = (incoming_id & mask) == (id & mask)`
137
+ ///
138
+ /// A mask of all all ones (`0x7FF`) matches the exact ID, a mask of 0 matches all IDs.
136
139
///
137
140
/// Both data and remote frames with `id` will be accepted. Extended frames will be rejected.
138
141
pub fn frames_with_std_id ( id : StandardId , mask : StandardId ) -> Self {
0 commit comments