pub struct Instance {
pub placement: Placement,
pub file: String,
pub inputs: Settings,
pub then: Vec<ProgramStep>,
}Expand description
An instance placed, as its target holds it: where it is, and the file,
the inputs and the steps after the file’s own its part was placed from
— what a copy of it places again, and what a list of the parts tells
them apart by. What is in it is its placed part (see
geop_core_program::placed::PlacedPart).
Fields§
§placement: Placement§file: StringThe file, as the program placing it names it.
inputs: Settings§then: Vec<ProgramStep>The steps run after the file’s own: a mirrored part’s mirror.
Trait Implementations§
Source§impl HasElements<Instance> for Instance
impl HasElements<Instance> for Instance
Source§type Element<'a> = &'a Instance
type Element<'a> = &'a Instance
What an element resolves to: a borrow of it, or what it gives.
Source§fn element(&self, name: &str) -> GeopResult<&Instance>
fn element(&self, name: &str) -> GeopResult<&Instance>
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.impl StructuralPartialEq for Instance
Source§impl Target for Instance
Defined once, by the step placing it.
impl Target for Instance
Defined once, by the step placing it.
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 Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
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