Lines Matching refs:struct_name

94         $struct_vis:vis struct $struct_name:ident($field_vis:vis $type:ty) {
103 $struct_vis struct $struct_name($field_vis $type);
105 impl $struct_name {
107 pub const $const: $struct_name = $struct_name($val); )+
157 $struct_name(value)
187 $struct_name(self.0 & rhs.0)
193 $struct_name(self.0 & !rhs.0)
199 $struct_name(self.0 ^ rhs.0)
205 $struct_name(self.0 | rhs.0)
211 $struct_name(self.0 ^ Self::VALID__)
215 impl ::std::fmt::Binary for $struct_name {
225 impl ::std::fmt::LowerHex for $struct_name {
231 impl ::std::fmt::Octal for $struct_name {
237 impl ::std::fmt::UpperHex for $struct_name {
243 impl ::std::fmt::Debug for $struct_name {
245 write!(f, "{}({})", stringify!($struct_name), self)
249 impl ::std::fmt::Display for $struct_name {
269 impl ::std::cmp::PartialEq<$type> for $struct_name {
275 impl ::std::ops::BitAnd<$struct_name> for &$struct_name {
276 type Output = $struct_name;
277 fn bitand(self, rhs: $struct_name) -> Self::Output {
278 $struct_name(self.0 & rhs.0)
282 impl ::std::ops::BitAndAssign<$struct_name> for $struct_name {
283 fn bitand_assign(&mut self, rhs: $struct_name) {
288 impl ::std::ops::BitXor<$struct_name> for &$struct_name {
289 type Output = $struct_name;
290 fn bitxor(self, rhs: $struct_name) -> Self::Output {
291 $struct_name(self.0 ^ rhs.0)
295 impl ::std::ops::BitXorAssign<$struct_name> for $struct_name {
296 fn bitxor_assign(&mut self, rhs: $struct_name) {
301 impl ::std::ops::BitOr<$struct_name> for &$struct_name {
302 type Output = $struct_name;
303 fn bitor(self, rhs: $struct_name) -> Self::Output {
304 $struct_name(self.0 | rhs.0)
308 impl ::std::ops::BitOrAssign<$struct_name> for $struct_name {
309 fn bitor_assign(&mut self, rhs: $struct_name) {
314 impl ::std::ops::Sub<$struct_name> for &$struct_name {
315 type Output = $struct_name;
316 fn sub(self, rhs: $struct_name) -> Self::Output {
317 $struct_name(self.0 & !rhs.0)
321 impl ::std::ops::SubAssign<$struct_name> for $struct_name {
322 fn sub_assign(&mut self, rhs: $struct_name) {
327 impl ::std::ops::Not for &$struct_name {
328 type Output = $struct_name;
330 $struct_name(self.0 ^ $struct_name::VALID__)
334 impl ::std::ops::BitAnd<$struct_name> for $struct_name {
337 $struct_name(self.0 & rhs.0)
341 impl ::std::ops::BitXor<$struct_name> for $struct_name {
344 $struct_name(self.0 ^ rhs.0)
348 impl ::std::ops::BitOr<$struct_name> for $struct_name {
351 $struct_name(self.0 | rhs.0)
355 impl ::std::ops::Sub<$struct_name> for $struct_name {
358 $struct_name(self.0 & !rhs.0)
362 impl ::std::ops::Not for $struct_name {
365 $struct_name(self.0 ^ Self::VALID__)
369 impl From<$struct_name> for $type {
370 fn from(x: $struct_name) -> $type {
375 impl From<$type> for $struct_name {
377 $struct_name(x & Self::VALID__)