Skip to content

Instantly share code, notes, and snippets.

@vvuk
Created October 16, 2016 23:48
Show Gist options
  • Save vvuk/68a66ad1ee88e1c2517b232588e61d19 to your computer and use it in GitHub Desktop.
Save vvuk/68a66ad1ee88e1c2517b232588e61d19 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!--
<Type Name="collections::vec::Vec&lt;*&gt;">
<DisplayString Condition="len == 0">empty</DisplayString>
<DisplayString Condition="len > 0">length = {len}, capacity = {buf.cap}</DisplayString>
<Expand>
<ArrayItems Condition="len &gt; 0">
<Size>len</Size>
<ValuePointer>($T1*)(buf.ptr.pointer.__0)</ValuePointer>
</ArrayItems>
</Expand>
</Type>
-->
<Type Name="core::option::Option&lt;*&gt;">
<DisplayString Condition="RUST$ENUM$DISR == 0">None</DisplayString>
<DisplayString Condition="RUST$ENUM$DISR != 0">$T1</DisplayString>
<Expand>
<ExpandedItem Condition="RUST$ENUM$DISR != 0">__0</ExpandedItem>
</Expand>
</Type>
</AutoVisualizer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment