Skip to content

Commit

Permalink
Document that derives imply supertraits, where applicable. (#2038) (#…
Browse files Browse the repository at this point in the history
…2039)

Fixes #2037

Co-authored-by: Jack Wrenn <[email protected]>
  • Loading branch information
google-pr-creation-bot and jswrenn authored Nov 8, 2024
1 parent 6fb430e commit af53999
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -923,9 +923,9 @@ safety_comment! {
/// Analyzes whether a type is [`FromZeros`].
///
/// This derive analyzes, at compile time, whether the annotated type satisfies
/// the [safety conditions] of `FromZeros` and implements `FromZeros` if it is
/// sound to do so. This derive can be applied to structs, enums, and unions;
/// e.g.:
/// the [safety conditions] of `FromZeros` and implements `FromZeros` and its
/// supertraits if it is sound to do so. This derive can be applied to structs,
/// enums, and unions; e.g.:
///
/// ```
/// # use zerocopy_derive::{FromZeros, Immutable};
Expand Down Expand Up @@ -3174,8 +3174,9 @@ pub unsafe trait FromZeros: TryFromBytes {
/// Analyzes whether a type is [`FromBytes`].
///
/// This derive analyzes, at compile time, whether the annotated type satisfies
/// the [safety conditions] of `FromBytes` and implements `FromBytes` if it is
/// sound to do so. This derive can be applied to structs, enums, and unions;
/// the [safety conditions] of `FromBytes` and implements `FromBytes` and its
/// supertraits if it is sound to do so. This derive can be applied to structs,
/// enums, and unions;
/// e.g.:
///
/// ```
Expand Down

0 comments on commit af53999

Please sign in to comment.