| <?xml version="1.0" encoding="utf-8"?> |
| <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> |
| <Type Name="alloc::vec::Vec<*>"> |
| <DisplayString>{{ size={len} }}</DisplayString> |
| <Expand> |
| <Item Name="[size]" ExcludeView="simple">len</Item> |
| <Item Name="[capacity]" ExcludeView="simple">buf.cap</Item> |
| <ArrayItems> |
| <Size>len</Size> |
| <ValuePointer>buf.ptr.pointer</ValuePointer> |
| </ArrayItems> |
| </Expand> |
| </Type> |
| <Type Name="alloc::collections::vec_deque::VecDeque<*>"> |
| <DisplayString>{{ size={tail <= head ? head - tail : buf.cap - tail + head} }}</DisplayString> |
| <Expand> |
| <Item Name="[size]" ExcludeView="simple">tail <= head ? head - tail : buf.cap - tail + head</Item> |
| <Item Name="[capacity]" ExcludeView="simple">buf.cap</Item> |
| <CustomListItems> |
| <Variable Name="i" InitialValue="tail" /> |
| |
| <Size>tail <= head ? head - tail : buf.cap - tail + head</Size> |
| <Loop> |
| <If Condition="i == head"> |
| <Break/> |
| </If> |
| <Item>buf.ptr.pointer[i]</Item> |
| <Exec>i = (i + 1 == buf.cap ? 0 : i + 1)</Exec> |
| </Loop> |
| </CustomListItems> |
| </Expand> |
| </Type> |
| <Type Name="alloc::collections::linked_list::LinkedList<*>"> |
| <DisplayString>{{ size={len} }}</DisplayString> |
| <Expand> |
| <LinkedListItems> |
| <Size>len</Size> |
| <HeadPointer>*(alloc::collections::linked_list::Node<$T1> **)&head</HeadPointer> |
| <NextPointer>*(alloc::collections::linked_list::Node<$T1> **)&next</NextPointer> |
| <ValueNode>element</ValueNode> |
| </LinkedListItems> |
| </Expand> |
| </Type> |
| <Type Name="alloc::string::String"> |
| <DisplayString>{*(char**)this,[vec.len]s8}</DisplayString> |
| <StringView>*(char**)this,[vec.len]s8</StringView> |
| <Expand> |
| <Item Name="[size]" ExcludeView="simple">vec.len</Item> |
| <Item Name="[capacity]" ExcludeView="simple">vec.buf.cap</Item> |
| <ArrayItems> |
| <Size>vec.len</Size> |
| <ValuePointer>*(char**)this</ValuePointer> |
| </ArrayItems> |
| </Expand> |
| </Type> |
| </AutoVisualizer> |