pub struct Keyword {
pub name: &'static str,
pub category: KeywordCategory,
pub description: &'static str,
pub default_value: Option<&'static str>,
pub example: Option<&'static str>,
pub required: bool,
}Expand description
Keyword documentation entry Documentation entry for a single configuration keyword.
This struct holds all relevant information for a keyword, including its name, category, description, default value, example usage, and whether it is a required parameter.
Fields§
§name: &'static strThe name of the keyword (e.g., “nprocs”, “method”).
category: KeywordCategoryThe category to which this keyword belongs.
description: &'static strA brief description of what the keyword does.
default_value: Option<&'static str>The default value of the keyword, if applicable.
example: Option<&'static str>An example of how to use the keyword in an input file.
required: boolIndicates whether the keyword is required for a calculation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnsafeUnpin for Keyword
impl UnwindSafe for Keyword
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.