Struct nom_kconfig::attribute::type::ConfigType
source · pub struct ConfigType {
pub type: Type,
pub if: Option<Expression>,
}Expand description
Every config option must have a type. There are only two basic types: tristate and string; the other types are based on these two. The type definition optionally accepts an input prompt.
Fields§
§type: Type§if: Option<Expression>Trait Implementations§
source§impl Clone for ConfigType
impl Clone for ConfigType
source§fn clone(&self) -> ConfigType
fn clone(&self) -> ConfigType
Returns a copy 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 ConfigType
impl Debug for ConfigType
source§impl<'de> Deserialize<'de> for ConfigType
impl<'de> Deserialize<'de> for ConfigType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ConfigType
impl Hash for ConfigType
source§impl PartialEq<ConfigType> for ConfigType
impl PartialEq<ConfigType> for ConfigType
source§fn eq(&self, other: &ConfigType) -> bool
fn eq(&self, other: &ConfigType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ConfigType
impl Serialize for ConfigType
impl StructuralPartialEq for ConfigType
Auto Trait Implementations§
impl RefUnwindSafe for ConfigType
impl Send for ConfigType
impl Sync for ConfigType
impl Unpin for ConfigType
impl UnwindSafe for ConfigType
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