[][src]Struct deepsize::Context

pub struct Context { /* fields omitted */ }

The context of which references have already been seen

Keeps track of the Arcs, Rcs, and references that have been visited, so that Arcs 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

Methods

impl Context
[src]

pub fn new() -> Context
[src]

Creates a new empty context for use in the deep_size functions

Trait Implementations

impl Debug for Context
[src]

Auto Trait Implementations

impl Send for Context

impl Sync for Context

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.