summary refs log tree commit diff
path: root/src/etc/natvis/libcore.natvis
blob: 9c3c26f597838de041c1b427186d1b52f610162a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
  <Type Name="core::ptr::Unique&lt;*&gt;">
    <DisplayString>{{ Unique {pointer} }}</DisplayString>
    <Expand>
      <Item Name="[ptr]">pointer</Item>
    </Expand>
  </Type>

  <Type Name="core::ptr::Shared&lt;*&gt;">
    <DisplayString>{{ Shared {pointer} }}</DisplayString>
    <Expand>
      <Item Name="[ptr]">pointer</Item>
    </Expand>
  </Type>

  <Type Name="core::option::Option&lt;*&gt;">
    <DisplayString Condition="RUST$ENUM$DISR == 0x0">None</DisplayString>
    <DisplayString Condition="RUST$ENUM$DISR == 0x1">Some({__0})</DisplayString>
    <Expand>
      <Item Name="[value]" ExcludeView="simple" Condition="RUST$ENUM$DISR == 1">__0</Item>
    </Expand>
  </Type>

  <Type Name="core::option::Option&lt;*&gt;" Priority="MediumLow">
    <DisplayString Condition="*(void**)this == nullptr">None</DisplayString>
    <DisplayString>Some({($T1 *)this})</DisplayString>
    <Expand>
      <Item Name="Some" ExcludeView="simple" Condition="*(void**)this != nullptr">($T1 *)this</Item>
    </Expand>
  </Type>

  <Type Name="core::result::Result&lt;*&gt;">
    <DisplayString Condition="RUST$ENUM$DISR == 0x0">Ok({__0})</DisplayString>
    <DisplayString Condition="RUST$ENUM$DISR == 0x1">Err({(*($T2*) &amp;__0)})</DisplayString>
    <Expand>
      <Item Name="[value]" Condition="RUST$ENUM$DISR == 0x0">__0</Item>
      <Item Name="[value]" Condition="RUST$ENUM$DISR == 0x1">(*($T2*) &amp;__0)</Item>
    </Expand>
  </Type>

  <Type Name="core::ptr::non_null::NonNull&lt;*&gt;">
    <DisplayString>{(void*) pointer}</DisplayString>
    <Expand>
      <Item Name="[value]">*pointer</Item>
    </Expand>
  </Type>
</AutoVisualizer>