| use debugger_test::debugger_test; |
| use smallvec::{smallvec, SmallVec}; |
| expected_statements = r#" |
| sv : { len=0x2 } [Type: smallvec::SmallVec<array$<i32,4> >] |
| [<Raw View>] [Type: smallvec::SmallVec<array$<i32,4> >] |
| [len] : 0x2 [Type: unsigned __int64] |
| sv : { len=0x5 } [Type: smallvec::SmallVec<array$<i32,4> >] |
| [<Raw View>] [Type: smallvec::SmallVec<array$<i32,4> >] |
| [capacity] : 0x8 [Type: unsigned __int64] |
| [len] : 0x5 [Type: unsigned __int64] |
| sv : { len=0x5 } [Type: smallvec::SmallVec<array$<i32,4> >] |
| [<Raw View>] [Type: smallvec::SmallVec<array$<i32,4> >] |
| [capacity] : 0x8 [Type: unsigned __int64] |
| [len] : 0x5 [Type: unsigned __int64] |
| fn test_debugger_visualizer() { |
| // This SmallVec can hold up to 4 items on the stack: |
| let mut sv: SmallVec<[i32; 4]> = smallvec![1, 2]; |
| // Overfill the SmallVec to move its contents to the heap |
| // Update the contents of the first value of the SmallVec. |
| // Sort the SmallVec in place. |