pub enum ParameterValue {
Number(f64),
Text(String),
}Expand description
What a parameter of the program comes to, as its target holds it
(parameter): a number, or a text — the row of a table a part family
is looked up in, by name.
Variants§
Trait Implementations§
Source§impl Clone for ParameterValue
impl Clone for ParameterValue
Source§fn clone(&self) -> ParameterValue
fn clone(&self) -> ParameterValue
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 ParameterValue
impl Debug for ParameterValue
Source§impl HasElements<ParameterValue> for ParameterValue
impl HasElements<ParameterValue> for ParameterValue
Source§type Element<'a> = &'a ParameterValue
type Element<'a> = &'a ParameterValue
What an element resolves to: a borrow of it, or what it gives.
Source§fn element(&self, name: &str) -> GeopResult<&ParameterValue>
fn element(&self, name: &str) -> GeopResult<&ParameterValue>
The element
name, or why there is none.Source§const SINGLETON: Option<&'static str> = None
const SINGLETON: Option<&'static str> = None
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§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 ParameterValue
Read whole.
impl Kind for ParameterValue
Read whole.
Source§impl PartialEq for ParameterValue
impl PartialEq for ParameterValue
impl StructuralPartialEq for ParameterValue
Source§impl Target for ParameterValue
Defined once, by the step that defines the parameter.
impl Target for ParameterValue
Defined once, by the step that defines the parameter.
Source§const CHAIN: bool = false
const CHAIN: bool = false
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 ParameterValue
impl RefUnwindSafe for ParameterValue
impl Send for ParameterValue
impl Sync for ParameterValue
impl Unpin for ParameterValue
impl UnsafeUnpin for ParameterValue
impl UnwindSafe for ParameterValue
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