mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Rename add_size_of_children()
methods as add_size_of()
.
This makes them match `size_of` from `MallocSizeOf`.
This commit is contained in:
parent
2d24d2dd04
commit
e030c0d96a
4 changed files with 12 additions and 12 deletions
|
@ -39,8 +39,8 @@
|
|||
//! - If you need an additional synchronization argument, provide a function
|
||||
//! that is like the standard trait method, but with the extra argument.
|
||||
//! - If you need multiple measurements for a type, provide a function named
|
||||
//! `add_size_of_children` that takes a mutable reference to a struct that
|
||||
//! contains the multiple measurement fields.
|
||||
//! `add_size_of` that takes a mutable reference to a struct that contains
|
||||
//! the multiple measurement fields.
|
||||
//! - When deep measurement (via `MallocSizeOf`) cannot be implemented for a
|
||||
//! type, shallow measurement (via `MallocShallowSizeOf`) in combination with
|
||||
//! iteration can be a useful substitute.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue