(&quot;c:\\&quot;);
    path.push(&quot;windows&quot;);
    path.push(&quot;system32&quot;);
    path.set_extension(&quot;dll&quot;);
    
}</span><pre class='rust rust-example-rendered'>
<span class='kw'>use</span> <span class='ident'>std</span>::<span class='ident'>path</span>::<span class='ident'>PathBuf</span>;

<span class='kw'>let</span> <span class='kw-2'>mut</span> <span class='ident'>path</span> <span class='op'>=</span> <span class='ident'>PathBuf</span>::<span class='ident'>from</span>(<span clas