pub struct Descriptor { /* private fields */ }
Expand description
Description of an option.
Implementations§
Source§impl Descriptor
impl Descriptor
Sourcepub fn new(name: &str, value_type: Type, description: &str) -> Self
pub fn new(name: &str, value_type: Type, description: &str) -> Self
Create a new option descriptor.
Sourcepub fn value_type(&self) -> &Type
pub fn value_type(&self) -> &Type
Get the type of the option value.
Sourcepub fn description(&self) -> &String
pub fn description(&self) -> &String
Get the description of the option.
Sourcepub fn get_aliases(&self) -> &HashSet<String>
pub fn get_aliases(&self) -> &HashSet<String>
Get aliases.
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl !Send for Descriptor
impl !Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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