Lines Matching refs:Trait
302 pub(crate) enum Trait { enum
328 impl ToTokens for Trait { implementation
340 Trait::HasField { .. } => "HasField", in to_tokens()
341 Trait::ProjectField { .. } => "ProjectField", in to_tokens()
342 Trait::KnownLayout => "KnownLayout", in to_tokens()
343 Trait::HasTag => "HasTag", in to_tokens()
344 Trait::Immutable => "Immutable", in to_tokens()
345 Trait::TryFromBytes => "TryFromBytes", in to_tokens()
346 Trait::FromZeros => "FromZeros", in to_tokens()
347 Trait::FromBytes => "FromBytes", in to_tokens()
348 Trait::IntoBytes => "IntoBytes", in to_tokens()
349 Trait::Unaligned => "Unaligned", in to_tokens()
350 Trait::Sized => "Sized", in to_tokens()
351 Trait::ByteHash => "ByteHash", in to_tokens()
352 Trait::ByteEq => "ByteEq", in to_tokens()
353 Trait::SplitAt => "SplitAt", in to_tokens()
357 Trait::HasField { variant_id, field, field_id } => { in to_tokens()
360 Trait::ProjectField { variant_id, field, field_id, invariants } => { in to_tokens()
363 Trait::KnownLayout in to_tokens()
364 | Trait::HasTag in to_tokens()
365 | Trait::Immutable in to_tokens()
366 | Trait::TryFromBytes in to_tokens()
367 | Trait::FromZeros in to_tokens()
368 | Trait::FromBytes in to_tokens()
369 | Trait::IntoBytes in to_tokens()
370 | Trait::Unaligned in to_tokens()
371 | Trait::Sized in to_tokens()
372 | Trait::ByteHash in to_tokens()
373 | Trait::ByteEq in to_tokens()
374 | Trait::SplitAt => None, in to_tokens()
380 impl Trait { impl
393 Other(Trait),
410 All(&'a [Trait]),
417 pub(crate) const SIZED: Self = Self::All(&[Trait::Sized]);
422 slf: &'a Trait, in normalize_bounds() argument
424 ) -> impl 'a + Iterator<Item = Trait> { in normalize_bounds()
434 trt: Trait,
447 trt: Trait, in new() argument
555 fn bound_tt(ty: &Type, traits: impl Iterator<Item = Trait>, ctx: &Ctx) -> WherePredicate { in build()
849 let _ = <Self as Trait>::Item; in test_check_hygiene_success()