pub struct Context { /* fields omitted */ }
The context of which references have already been seen
Keeps track of the Arc
s, Rc
s, and references
that have been visited, so that Arc
s and other references
aren't double counted.
Currently this counts each reference once, although there are arguments for
only counting owned data, and ignoring partial ownership, or for counting
partial refernces like Arc as its size divided by the strong reference count.
Github Issue discussion here
Creates a new empty context for use in the deep_size functions
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more