Skip to main content

RegisteredOptions

Struct RegisteredOptions 

Source
pub struct RegisteredOptions { /* private fields */ }
Expand description

Mirrors RegisteredOptions. Insertion-ordered registry of options.

Implementations§

Source§

impl RegisteredOptions

Source

pub fn new() -> Rc<Self>

Source

pub fn set_registering_category(&self, category: impl Into<String>)

Source

pub fn add_number_option( &self, name: &str, short_description: &str, default_value: Number, long_description: &str, ) -> Result<Rc<RegisteredOption>, SolverException>

Source

pub fn add_lower_bounded_number_option( &self, name: &str, short_description: &str, lower: Number, strict: bool, default_value: Number, long_description: &str, ) -> Result<Rc<RegisteredOption>, SolverException>

Source

pub fn add_bounded_number_option( &self, name: &str, short_description: &str, lower: Number, lower_strict: bool, upper: Number, upper_strict: bool, default_value: Number, long_description: &str, ) -> Result<Rc<RegisteredOption>, SolverException>

Source

pub fn add_integer_option( &self, name: &str, short_description: &str, default_value: Index, long_description: &str, ) -> Result<Rc<RegisteredOption>, SolverException>

Source

pub fn add_lower_bounded_integer_option( &self, name: &str, short_description: &str, lower: Index, default_value: Index, long_description: &str, ) -> Result<Rc<RegisteredOption>, SolverException>

Source

pub fn add_bounded_integer_option( &self, name: &str, short_description: &str, lower: Index, upper: Index, default_value: Index, long_description: &str, ) -> Result<Rc<RegisteredOption>, SolverException>

Source

pub fn add_string_option( &self, name: &str, short_description: &str, default_value: &str, valid: &[(&str, &str)], long_description: &str, ) -> Result<Rc<RegisteredOption>, SolverException>

Source

pub fn add_bool_option( &self, name: &str, short_description: &str, default_yes: bool, long_description: &str, ) -> Result<Rc<RegisteredOption>, SolverException>

Convenience: yes/no option, default default_yes ? “yes” : “no”.

Source

pub fn get_option(&self, name: &str) -> Option<Rc<RegisteredOption>>

Mirrors GetOption(name). If name contains a ., only the suffix after the last . is looked up — this is how upstream validates prefixed option-file lines like resto.tol.

Source

pub fn registered_options_in_order(&self) -> Vec<Rc<RegisteredOption>>

Returns options in registration order.

Source

pub fn print_options_documentation( &self, mode: PrintOptionsMode, include_advanced: bool, ) -> String

Render the registry as human-readable text grouped by category. The output mirrors the categories produced by Ipopt’s RegisteredOptions::OutputOptionDocumentation. Options whose short and long descriptions are both empty are dropped from the listing. include_advanced controls whether options flagged advanced appear (none in pounce today, but the gate is honored so the flag stays meaningful for future additions).

Set mode via PrintOptionsMode; Text is the default. Latex / Doxygen are accepted (they prepend a one-line note that they currently fall through to the text formatter) so scripts that pass them through unconditionally still produce readable output.

Trait Implementations§

Source§

impl Debug for RegisteredOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RegisteredOptions

Source§

fn default() -> RegisteredOptions

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.