From 5e633a0b0d3aaac8ae6f951f9f736f278a30a05b Mon Sep 17 00:00:00 2001 From: dabreegster Date: Sat, 9 Jan 2021 21:20:20 +0000 Subject: [PATCH] deploy: dff6d6004d11e149c083567b44068adc2e81411a --- rustdoc/abstutil/all.html | 2 +- rustdoc/abstutil/cli/fn.parse_args.html | 4 + rustdoc/abstutil/cli/index.html | 7 +- rustdoc/abstutil/cli/sidebar-items.js | 2 +- rustdoc/abstutil/cli/struct.CmdArgs.html | 4 +- rustdoc/abstutil/struct.CmdArgs.html | 4 +- .../built_info/constant.BUILT_TIME_UTC.html | 2 +- rustdoc/search-index.js | 16 ++-- rustdoc/src/abstutil/cli.rs.html | 78 ++++++++++++++++++- .../game-b5501e76eef510ad/out/built.rs.html | 2 +- 10 files changed, 101 insertions(+), 20 deletions(-) create mode 100644 rustdoc/abstutil/cli/fn.parse_args.html diff --git a/rustdoc/abstutil/all.html b/rustdoc/abstutil/all.html index 104e62872c..65675f18eb 100644 --- a/rustdoc/abstutil/all.html +++ b/rustdoc/abstutil/all.html @@ -3,4 +3,4 @@

[] - List of all items

Structs

Enums

Traits

Functions

Constants

\ No newline at end of file + List of all items

Structs

Enums

Traits

Functions

Constants

\ No newline at end of file diff --git a/rustdoc/abstutil/cli/fn.parse_args.html b/rustdoc/abstutil/cli/fn.parse_args.html new file mode 100644 index 0000000000..b6d709913c --- /dev/null +++ b/rustdoc/abstutil/cli/fn.parse_args.html @@ -0,0 +1,4 @@ +abstutil::cli::parse_args - Rust + +

[][src]Function abstutil::cli::parse_args

fn parse_args() -> Result<Vec<String>>
\ No newline at end of file diff --git a/rustdoc/abstutil/cli/index.html b/rustdoc/abstutil/cli/index.html index ba31481f22..bc3c37cd8f 100644 --- a/rustdoc/abstutil/cli/index.html +++ b/rustdoc/abstutil/cli/index.html @@ -1,6 +1,7 @@ abstutil::cli - Rust -

[][src]Module abstutil::cli

Structs

+

[][src]Module abstutil::cli

Structs

CmdArgs

Yet another barebones command-line flag parsing library.

-
\ No newline at end of file +

Functions

+
parse_args
\ No newline at end of file diff --git a/rustdoc/abstutil/cli/sidebar-items.js b/rustdoc/abstutil/cli/sidebar-items.js index 2a247c7fef..2c82dc9b42 100644 --- a/rustdoc/abstutil/cli/sidebar-items.js +++ b/rustdoc/abstutil/cli/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"struct":[["CmdArgs","Yet another barebones command-line flag parsing library."]]}); \ No newline at end of file +initSidebarItems({"fn":[["parse_args",""]],"struct":[["CmdArgs","Yet another barebones command-line flag parsing library."]]}); \ No newline at end of file diff --git a/rustdoc/abstutil/cli/struct.CmdArgs.html b/rustdoc/abstutil/cli/struct.CmdArgs.html index 52deaad32e..e1fab43b0d 100644 --- a/rustdoc/abstutil/cli/struct.CmdArgs.html +++ b/rustdoc/abstutil/cli/struct.CmdArgs.html @@ -8,10 +8,10 @@ used: HashSet<String>, }

Yet another barebones command-line flag parsing library.

- Fields

kv: HashMap<String, String>bits: HashSet<String>free: Vec<String>used: HashSet<String>

Implementations

impl CmdArgs[src]

pub fn new() -> CmdArgs[src]

On native, initialize with real flags. On web, always empty.

+ Fieldskv: HashMap<String, String>bits: HashSet<String>free: Vec<String>used: HashSet<String>

Implementations

impl CmdArgs[src]

pub fn new() -> CmdArgs[src]

On native, initialize with real flags. On web, always empty.

Calling this has the side-effect of initializing logging on both native and web. This should probably be done independently, but for the moment, every app wants both.

-

fn from_args(raw: Vec<String>) -> CmdArgs[src]

pub fn required(&mut self, key: &str) -> String[src]

pub fn optional(&mut self, key: &str) -> Option<String>[src]

pub fn optional_parse<T, E, F: Fn(&str) -> Result<T, E>>(
    &mut self,
    key: &str,
    parser: F
) -> Option<T>
[src]

pub fn true_false(&mut self, key: &str) -> bool[src]

pub fn enabled(&mut self, key: &str) -> bool[src]

pub fn required_free(&mut self) -> String[src]

pub fn optional_free(&mut self) -> Option<String>[src]

pub fn done(&mut self)[src]

Auto Trait Implementations

impl RefUnwindSafe for CmdArgs

impl Send for CmdArgs

impl Sync for CmdArgs

impl Unpin for CmdArgs

impl UnwindSafe for CmdArgs

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

fn from_args(raw: Vec<String>) -> CmdArgs[src]

pub fn required(&mut self, key: &str) -> String[src]

pub fn optional(&mut self, key: &str) -> Option<String>[src]

pub fn optional_parse<T, E, F: Fn(&str) -> Result<T, E>>(
    &mut self,
    key: &str,
    parser: F
) -> Option<T>
[src]

pub fn true_false(&mut self, key: &str) -> bool[src]

pub fn enabled(&mut self, key: &str) -> bool[src]

pub fn required_free(&mut self) -> String[src]

pub fn optional_free(&mut self) -> Option<String>[src]

pub fn done(&mut self)[src]

Auto Trait Implementations

impl RefUnwindSafe for CmdArgs

impl Send for CmdArgs

impl Sync for CmdArgs

impl Unpin for CmdArgs

impl UnwindSafe for CmdArgs

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

Yet another barebones command-line flag parsing library.

- Fields

kv: HashMap<String, String>bits: HashSet<String>free: Vec<String>used: HashSet<String>

Implementations

impl CmdArgs[src]

pub fn new() -> CmdArgs[src]

On native, initialize with real flags. On web, always empty.

+ Fieldskv: HashMap<String, String>bits: HashSet<String>free: Vec<String>used: HashSet<String>

Implementations

impl CmdArgs[src]

pub fn new() -> CmdArgs[src]

On native, initialize with real flags. On web, always empty.

Calling this has the side-effect of initializing logging on both native and web. This should probably be done independently, but for the moment, every app wants both.

-

fn from_args(raw: Vec<String>) -> CmdArgs[src]

pub fn required(&mut self, key: &str) -> String[src]

pub fn optional(&mut self, key: &str) -> Option<String>[src]

pub fn optional_parse<T, E, F: Fn(&str) -> Result<T, E>>(
    &mut self,
    key: &str,
    parser: F
) -> Option<T>
[src]

pub fn true_false(&mut self, key: &str) -> bool[src]

pub fn enabled(&mut self, key: &str) -> bool[src]

pub fn required_free(&mut self) -> String[src]

pub fn optional_free(&mut self) -> Option<String>[src]

pub fn done(&mut self)[src]

Auto Trait Implementations

impl RefUnwindSafe for CmdArgs

impl Send for CmdArgs

impl Sync for CmdArgs

impl Unpin for CmdArgs

impl UnwindSafe for CmdArgs

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

fn from_args(raw: Vec<String>) -> CmdArgs[src]

pub fn required(&mut self, key: &str) -> String[src]

pub fn optional(&mut self, key: &str) -> Option<String>[src]

pub fn optional_parse<T, E, F: Fn(&str) -> Result<T, E>>(
    &mut self,
    key: &str,
    parser: F
) -> Option<T>
[src]

pub fn true_false(&mut self, key: &str) -> bool[src]

pub fn enabled(&mut self, key: &str) -> bool[src]

pub fn required_free(&mut self) -> String[src]

pub fn optional_free(&mut self) -> Option<String>[src]

pub fn done(&mut self)[src]

Auto Trait Implementations

impl RefUnwindSafe for CmdArgs

impl Send for CmdArgs

impl Sync for CmdArgs

impl Unpin for CmdArgs

impl UnwindSafe for CmdArgs

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]