Struct lrs::getopt::Getopt

A simple argument parser.

Syntax

struct Getopt<'a, I>
    where I: Iterator<Item = &'static CStr>,
{
    /* private fields */
}

Static methods

NameDescription
new

Creates a new parser.

Methods

ReceiverNameDescription
&selfused

Returns the number of arguments used before parsing was stopped.

Trait implementations

NameDescription
Iterator

Objects that can be iterated over.

See also