]> git.proxmox.com Git - rustc.git/blame - src/etc/natvis/libcore.natvis
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / etc / natvis / libcore.natvis
CommitLineData
8bb4bdeb
XL
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;">
48663c56 4 <DisplayString>{{ Unique {pointer} }}</DisplayString>
8bb4bdeb 5 <Expand>
48663c56 6 <Item Name="[ptr]">pointer</Item>
8bb4bdeb
XL
7 </Expand>
8 </Type>
5869c6ff 9
8bb4bdeb 10 <Type Name="core::ptr::Shared&lt;*&gt;">
48663c56 11 <DisplayString>{{ Shared {pointer} }}</DisplayString>
8bb4bdeb 12 <Expand>
48663c56 13 <Item Name="[ptr]">pointer</Item>
8bb4bdeb
XL
14 </Expand>
15 </Type>
5869c6ff 16
8bb4bdeb 17 <Type Name="core::option::Option&lt;*&gt;">
5869c6ff
XL
18 <DisplayString Condition="RUST$ENUM$DISR == 0x0">None</DisplayString>
19 <DisplayString Condition="RUST$ENUM$DISR == 0x1">Some({__0})</DisplayString>
8bb4bdeb 20 <Expand>
5869c6ff 21 <Item Name="[value]" ExcludeView="simple" Condition="RUST$ENUM$DISR == 1">__0</Item>
8bb4bdeb
XL
22 </Expand>
23 </Type>
5869c6ff 24
8bb4bdeb 25 <Type Name="core::option::Option&lt;*&gt;" Priority="MediumLow">
5869c6ff
XL
26 <DisplayString Condition="*(void**)this == nullptr">None</DisplayString>
27 <DisplayString>Some({($T1 *)this})</DisplayString>
8bb4bdeb 28 <Expand>
5869c6ff 29 <Item Name="Some" ExcludeView="simple" Condition="*(void**)this != nullptr">($T1 *)this</Item>
8bb4bdeb
XL
30 </Expand>
31 </Type>
5869c6ff 32
6a06907d
XL
33 <Type Name="core::result::Result&lt;*&gt;">
34 <DisplayString Condition="RUST$ENUM$DISR == 0x0">Ok({__0})</DisplayString>
35 <DisplayString Condition="RUST$ENUM$DISR == 0x1">Err({(*($T2*) &amp;__0)})</DisplayString>
36 <Expand>
37 <Item Name="[value]" Condition="RUST$ENUM$DISR == 0x0">__0</Item>
38 <Item Name="[value]" Condition="RUST$ENUM$DISR == 0x1">(*($T2*) &amp;__0)</Item>
39 </Expand>
40 </Type>
41
42 <Type Name="core::ptr::non_null::NonNull&lt;*&gt;">
43 <DisplayString>{(void*) pointer}</DisplayString>
44 <Expand>
45 <Item Name="[value]">*pointer</Item>
46 </Expand>
47 </Type>
8bb4bdeb 48</AutoVisualizer>