pub struct ParameterValues(pub Vec<(String, ParameterValue)>);Expand description
Every parameter of the part, by name, in the order the steps defining them define them, as each comes to: what lists or designates the part reads. A parameter that failed is left out.
Tuple Fields§
§0: Vec<(String, ParameterValue)>Trait Implementations§
Source§impl Clone for ParameterValues
impl Clone for ParameterValues
Source§fn clone(&self) -> ParameterValues
fn clone(&self) -> ParameterValues
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 ParameterValues
impl Debug for ParameterValues
Source§impl Default for ParameterValues
impl Default for ParameterValues
Source§fn default() -> ParameterValues
fn default() -> ParameterValues
Returns the “default value” for a type. Read more
Source§impl HasElements<ParameterValues> for ParameterValues
impl HasElements<ParameterValues> for ParameterValues
Source§const SINGLETON: Option<&'static str>
const SINGLETON: Option<&'static str>
The name of the one target of this type a part has, if it has only
one — the topology, say: a reference into it is saved as the
element’s name alone.
Source§type Element<'a> = &'a ParameterValues
type Element<'a> = &'a ParameterValues
What an element resolves to: a borrow of it, or what it gives.
Source§fn element(&self, name: &str) -> GeopResult<&ParameterValues>
fn element(&self, name: &str) -> GeopResult<&ParameterValues>
The element
name, or why there is none.Source§fn undefined() -> Option<&'static Self>
fn undefined() -> Option<&'static Self>
What the target reads as where no step made it, if it reads as
anything then — the datums every part starts with. None by default:
reading it fails.
Source§fn names_target(name: &str) -> bool
fn names_target(name: &str) -> bool
Whether the target named
name could be one of this type: what
tells a pick of an element of it from one of a target of another
type with elements of the same kind (ElementReference::from_picked).
The singleton’s name, for a singleton; any name, by default.Source§impl Kind for ParameterValues
Read whole.
impl Kind for ParameterValues
Read whole.
Source§impl PartialEq for ParameterValues
impl PartialEq for ParameterValues
impl StructuralPartialEq for ParameterValues
Source§impl Target for ParameterValues
Each step defining parameters adds its own.
impl Target for ParameterValues
Each step defining parameters adds its own.
Source§const CHAIN: bool = true
const CHAIN: bool = true
Whether several steps may produce a target of this type, each from
what the steps before left (see
crate::reader::Reader::previous):
the model, the datums, the parameters’ values, the listings — what
a program accumulates. A target that is not a chain — a sketch, a
placed part — has one producer, and a second is an error naming
both.Auto Trait Implementations§
impl Freeze for ParameterValues
impl RefUnwindSafe for ParameterValues
impl Send for ParameterValues
impl Sync for ParameterValues
impl Unpin for ParameterValues
impl UnsafeUnpin for ParameterValues
impl UnwindSafe for ParameterValues
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