pub struct Settings {
pub name: String,
pub label: String,
pub kind: &'static str,
pub between: Vec<String>,
pub values: Vec<Setting>,
}Expand description
Values of the state a user sets directly, as a step declares them for an
editor to list (see settings): a target of the part, named after
what they are of — the coordinates of a joint, by the joint’s name.
Fields§
§name: StringWhat they are of, by name: the joint’s mate.
label: StringWhat an editor calls that: fore m1, the mate m1 of the step
fore.
kind: &'static strWhat kind of thing that is: revolute.
between: Vec<String>What it joins, as the elements it is between read.
values: Vec<Setting>Trait Implementations§
Source§impl HasElements<Settings> for Settings
impl HasElements<Settings> for Settings
Source§type Element<'a> = &'a Settings
type Element<'a> = &'a Settings
What an element resolves to: a borrow of it, or what it gives.
Source§fn element(&self, name: &str) -> GeopResult<&Settings>
fn element(&self, name: &str) -> GeopResult<&Settings>
The element
name, or why there is none.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.impl StructuralPartialEq for Settings
Source§impl Target for Settings
Each joint’s own.
impl Target for Settings
Each joint’s own.
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 Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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