pub fn len(&self) -> usize {
        let chunks = self.chunks.borrow();

        let mut res = 0;
        for vec in chunks.rest.iter() {
            res += vec.len()
        }

        res + chunks.current.len()
    }
/// Return the size of the arena
///
/// This is useful for using the size of previous typed arenas to build new typed arenas with large enough spaces.
///
/// ## Example
///
/// ```
///  use typed_arena::Arena;
///
///  let arena = Arena::with_capacity(0);
///  let a = arena.alloc(1);
///  let b = arena.alloc(2);
///
///  assert_eq!(arena.len(), 2);
/// ```
Return the size of the arena
This is useful for using the size of previous typed arenas to build new typed arenas with large enough spaces.
Return the size of the arena This is useful for using the size of previous typed arenas to build new typed arenas with large enough spaces .
pub fn len(&self) -> usize {
        let chunks = self.chunks.borrow();
        let mut res = 0;
        for vec in chunks.rest.iter() {
            res += vec.len()
        }
        res + chunks.current.len()
    }
pub fn len ( & self ) -> usize { let chunks = self . chunks . borrow ( ) ; let mut res = 0 ; for vec in chunks . rest . iter ( ) { res += vec . len ( ) } res + chunks . current . len ( ) }
Return the size of the arena
This is useful for using the size of previous typed arenas to build new typed arenas with large enough spaces.
Return the size of the arena This is useful for using the size of previous typed arenas to build new typed arenas with large enough spaces .
&self
&self
example
```
use typed_arena::Arena.

let arena = Arena::with_capacity(0);
let a = arena.alloc(1);
let b = arena.alloc(2).


` ` ` use typed_arena :: Arena . let arena = Arena :: with_capacity ( 0 ) ; let a = arena . alloc ( 1 ) ; let b = arena . alloc ( 2 ) .