pub struct RecipeParam {
pub name: String,
pub value: PropertyValue,
pub source_span: Option<Span>,
pub unknown_props: BTreeMap<String, UnknownProperty>,
}Expand description
A single typed generation parameter within a RecipeDef.
Fields§
§name: StringParameter name. Required.
value: PropertyValueParameter value (number dimension, token ref, or string literal). Required.
source_span: Option<Span>Source declaration span, when available.
unknown_props: BTreeMap<String, UnknownProperty>Forward-compat: unrecognized attributes preserved with typed values + annotations.
Trait Implementations§
Source§impl Clone for RecipeParam
impl Clone for RecipeParam
Source§fn clone(&self) -> RecipeParam
fn clone(&self) -> RecipeParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecipeParam
impl Debug for RecipeParam
Source§impl PartialEq for RecipeParam
impl PartialEq for RecipeParam
Source§fn eq(&self, other: &RecipeParam) -> bool
fn eq(&self, other: &RecipeParam) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecipeParam
Auto Trait Implementations§
impl Freeze for RecipeParam
impl RefUnwindSafe for RecipeParam
impl Send for RecipeParam
impl Sync for RecipeParam
impl Unpin for RecipeParam
impl UnsafeUnpin for RecipeParam
impl UnwindSafe for RecipeParam
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