Rust processes: Difference between revisions
From wikinotes
(Created page with " = Documentation = <blockquote> {| class="wikitable" |- | <code>std::env</code> (process environment) || https://doc.rust-lang.org/std/env/index.html |- |} </blockquote><!-- Documentation --> = Current Process = <blockquote> <syntaxhighlight lang="rust"> use std::env; let args: Vec<String> = env::args().collect(); </syntaxhighlight> </blockquote><!-- Current Process -->") |
|||
Line 14: | Line 14: | ||
use std::env; | use std::env; | ||
let args: Vec<String> = env::args().collect(); | let args: Vec<String> = env::args().collect(); // commandline arguments | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Current Process --> | </blockquote><!-- Current Process --> |
Revision as of 00:53, 9 February 2023
Documentation
std::env
(process environment)https://doc.rust-lang.org/std/env/index.html
Current Process
use std::env; let args: Vec<String> = env::args().collect(); // commandline arguments