Lines Matching +full:rx +full:- +full:eq

1 // SPDX-License-Identifier: MIT or Apache-2.0 or GPL-2.0-or-later
70 /// type `$type`. Supported operators are `!` (unary), `-`, `&`, `^`, `|`.
101 #[derive(Clone, Copy, PartialEq, Eq)]
114 pub const fn empty() -> Self {
120 pub const fn all() -> Self {
126 pub const fn valid_bits() -> Self {
132 pub const fn valid(val: $type) -> bool {
138 pub const fn any_set(self, mask: Self) -> bool {
144 pub const fn all_set(self, mask: Self) -> bool {
150 pub const fn none_set(self, mask: Self) -> bool {
156 pub const fn from_bits(value: $type) -> Self {
162 pub const fn into_bits(self) -> $type {
186 pub const fn intersection(self, rhs: Self) -> Self {
192 pub const fn difference(self, rhs: Self) -> Self {
198 pub const fn symmetric_difference(self, rhs: Self) -> Self {
204 pub const fn union(self, rhs: Self) -> Self {
210 pub const fn invert(self) -> Self {
216 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
226 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
232 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
238 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
244 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
250 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
257 left -= Self::$const.0;
270 fn eq(&self, rhs: &$type) -> bool {
277 fn bitand(self, rhs: $struct_name) -> Self::Output {
290 fn bitxor(self, rhs: $struct_name) -> Self::Output {
303 fn bitor(self, rhs: $struct_name) -> Self::Output {
316 fn sub(self, rhs: $struct_name) -> Self::Output {
323 self.0 = self.0 - rhs.0
329 fn not(self) -> Self::Output {
336 fn bitand(self, rhs: Self) -> Self::Output {
343 fn bitxor(self, rhs: Self) -> Self::Output {
350 fn bitor(self, rhs: Self) -> Self::Output {
357 fn sub(self, rhs: Self) -> Self::Output {
364 fn not(self) -> Self::Output {
370 fn from(x: $struct_name) -> $type {
376 fn from(x: $type) -> Self {
401 RX = 1 << 4,
416 InterruptMask::E | InterruptMask::MS | InterruptMask::TX | InterruptMask::RX in test_not()