Struct monument_cli::args::Options

source ·
pub struct Options {
    pub num_threads: Option<usize>,
    pub graph_size_limit: Option<usize>,
    pub mem_limit: Option<usize>,
    pub debug_option: Option<DebugOption>,
}

Fields§

§num_threads: Option<usize>

The maximum number of threads that Monument will use.

§graph_size_limit: Option<usize>

The maximum number of chunks in the chunk graph. Exceeding this during generation will cause an error. Defaults to 100K.

§mem_limit: Option<usize>

The maximum number of bytes of heap memory that Monument’s search routine can allocate. Defaults to 80% of what’s available.

§debug_option: Option<DebugOption>

Debug options. spec, query, layout and graph print the corresponding data structures. no-search will run as normal but stop just before starting the full search.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Returns clap::App corresponding to the struct.
Builds the struct from clap::ArgMatches. It’s guaranteed to succeed if matches originates from an App generated by StructOpt::clap called on the same type, otherwise it must panic.
Builds the struct from the command line arguments (std::env::args_os). Calls clap::Error::exit on failure, printing the error message and aborting the program.
Builds the struct from the command line arguments (std::env::args_os). Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program, so calling .exit is up to you.
Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more
Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more