summary refs log tree commit diff
path: root/src/etc/natvis/libcore.natvis
blob: 37d64be1ce963946b34650299101899e99387e85 (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
<?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.__0} }}</DisplayString>
    <Expand>
      <Item Name="[ptr]">pointer.__0</Item>
    </Expand>
  </Type>
  <Type Name="core::ptr::Shared&lt;*&gt;">
    <DisplayString>{{ Shared {*pointer.__0} }}</DisplayString>
    <Expand>
      <Item Name="[ptr]">pointer.__0</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="[size]" ExcludeView="simple">(ULONG)(RUST$ENUM$DISR != 0)</Item>
      <Item Name="[value]" ExcludeView="simple">__0</Item>
      <ArrayItems>
        <Size>(ULONG)(RUST$ENUM$DISR != 0)</Size>
        <ValuePointer>&amp;__0</ValuePointer>
      </ArrayItems>
    </Expand>
  </Type>
  <Type Name="core::option::Option&lt;*&gt;" Priority="MediumLow">
    <DisplayString Condition="*(PVOID *)this == nullptr">{{ None }}</DisplayString>
    <DisplayString>{{ Some {($T1 *)this} }}</DisplayString>
    <Expand>
      <Item Name="[size]" ExcludeView="simple">(ULONG)(*(PVOID *)this != nullptr)</Item>
      <Item Name="[value]" ExcludeView="simple" Condition="*(PVOID *)this != nullptr">($T1 *)this</Item>
      <ArrayItems>
        <Size>(ULONG)(*(PVOID *)this != nullptr)</Size>
        <ValuePointer>($T1 *)this</ValuePointer>
      </ArrayItems>
    </Expand>
  </Type>
</AutoVisualizer>