pub struct PreprocessorDefinition {
pub name: String,
pub optional: Option<bool>,
pub value: Option<String>,
pub description: Option<String>,
pub options: Vec<PreprocessorOption>,
pub annotations: Option<Annotations>,
}Expand description
Preprocessor definition/macro
Fields§
§name: StringName of the preprocessor definition
optional: Option<bool>Whether this definition is optional
value: Option<String>Value of the preprocessor definition
description: Option<String>Description of this preprocessor definition
options: Vec<PreprocessorOption>Possible option values
annotations: Option<Annotations>Optional annotations
Trait Implementations§
Source§impl Debug for PreprocessorDefinition
impl Debug for PreprocessorDefinition
Source§impl Default for PreprocessorDefinition
impl Default for PreprocessorDefinition
Source§fn default() -> PreprocessorDefinition
fn default() -> PreprocessorDefinition
Returns the “default value” for a type. Read more
Source§impl PartialEq for PreprocessorDefinition
impl PartialEq for PreprocessorDefinition
Source§impl<'__input> XmlRead<'__input> for PreprocessorDefinition
impl<'__input> XmlRead<'__input> for PreprocessorDefinition
Source§impl XmlWrite for PreprocessorDefinition
impl XmlWrite for PreprocessorDefinition
impl StructuralPartialEq for PreprocessorDefinition
Auto Trait Implementations§
impl Freeze for PreprocessorDefinition
impl RefUnwindSafe for PreprocessorDefinition
impl Send for PreprocessorDefinition
impl Sync for PreprocessorDefinition
impl Unpin for PreprocessorDefinition
impl UnwindSafe for PreprocessorDefinition
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more