pub struct ConfigShorthand {
pub variant: &'static ConfigVariant,
pub param: &'static ParamMetadata,
}Expand description
Shorthand for an enum config: a single non-object value at the config location is interpreted as variant
with the value assigned to param.
Fields§
§variant: &'static ConfigVariantVariant selected by the shorthand.
param: &'static ParamMetadataParam of the variant receiving the shorthand value.
Trait Implementations§
Source§impl Clone for ConfigShorthand
impl Clone for ConfigShorthand
Source§fn clone(&self) -> ConfigShorthand
fn clone(&self) -> ConfigShorthand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigShorthand
impl Debug for ConfigShorthand
impl Copy for ConfigShorthand
Auto Trait Implementations§
impl Freeze for ConfigShorthand
impl !RefUnwindSafe for ConfigShorthand
impl Send for ConfigShorthand
impl Sync for ConfigShorthand
impl Unpin for ConfigShorthand
impl !UnwindSafe for ConfigShorthand
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