Rust processes

From wikinotes
Revision as of 00:53, 9 February 2023 by Will (talk | contribs) (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 -->")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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();