]> git.proxmox.com Git - rustc.git/blob - src/etc/natvis/libcore.natvis
New upstream version 1.17.0+dfsg1
[rustc.git] / src / etc / natvis / libcore.natvis
1 <?xml version="1.0" encoding="utf-8"?>
2 <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
3 <Type Name="core::ptr::Unique&lt;*&gt;">
4 <DisplayString>{{ Unique {*pointer.__0} }}</DisplayString>
5 <Expand>
6 <Item Name="[ptr]">pointer.__0</Item>
7 </Expand>
8 </Type>
9 <Type Name="core::ptr::Shared&lt;*&gt;">
10 <DisplayString>{{ Shared {*pointer.__0} }}</DisplayString>
11 <Expand>
12 <Item Name="[ptr]">pointer.__0</Item>
13 </Expand>
14 </Type>
15 <Type Name="core::option::Option&lt;*&gt;">
16 <DisplayString Condition="RUST$ENUM$DISR == 0x0">{{ None }}</DisplayString>
17 <DisplayString Condition="RUST$ENUM$DISR == 0x1">{{ Some {__0} }}</DisplayString>
18 <Expand>
19 <Item Name="[size]" ExcludeView="simple">(ULONG)(RUST$ENUM$DISR != 0)</Item>
20 <Item Name="[value]" ExcludeView="simple">__0</Item>
21 <ArrayItems>
22 <Size>(ULONG)(RUST$ENUM$DISR != 0)</Size>
23 <ValuePointer>&amp;__0</ValuePointer>
24 </ArrayItems>
25 </Expand>
26 </Type>
27 <Type Name="core::option::Option&lt;*&gt;" Priority="MediumLow">
28 <DisplayString Condition="*(PVOID *)this == nullptr">{{ None }}</DisplayString>
29 <DisplayString>{{ Some {($T1 *)this} }}</DisplayString>
30 <Expand>
31 <Item Name="[size]" ExcludeView="simple">(ULONG)(*(PVOID *)this != nullptr)</Item>
32 <Item Name="[value]" ExcludeView="simple" Condition="*(PVOID *)this != nullptr">($T1 *)this</Item>
33 <ArrayItems>
34 <Size>(ULONG)(*(PVOID *)this != nullptr)</Size>
35 <ValuePointer>($T1 *)this</ValuePointer>
36 </ArrayItems>
37 </Expand>
38 </Type>
39 </AutoVisualizer>