Skip to content

Commit

Permalink
doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
zachs18 committed Sep 13, 2024
1 parent c8e6fca commit 92f77c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions derive/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ pub trait Derivable {
fn explicit_bounds_attribute_name() -> Option<&'static str> {
None
}

/// If this trait has a custom meaning for "perfect derive", this function
/// should be overridden to return `Some`.
///
/// The default is "the fields of a struct; unions and enums not supported".
fn perfect_derive_fields(input: &DeriveInput) -> Option<Fields> {
None
}
Expand Down

0 comments on commit 92f77c8

Please sign in to comment.