pub struct ComponentSnapshot {
pub id: String,
pub part_name: String,
pub transform: [f64; 16],
pub fixed: bool,
pub source: Value,
pub solids: Vec<String>,
pub ports: Vec<String>,
}Expand description
One placed component as the run left it — the engine’s own projection of the
kernel’s ComponentRecord, which is a #[serde(skip)] side-channel and
carries no serde derives of its own. Shipped in the reply so the main thread
has the post-solve component set without re-running the history.
Fields§
§id: StringThe owning ACOMP feature id — also the namespace prefix segment.
part_name: StringThe display / parts-library part name.
transform: [f64; 16]The rigid instance pose (part-local snapshot space -> assembly space)
as the kernel’s row-major 4x4; Self::affine wraps it back up.
fixed: boolGrounded flag (the feature’s isFixed).
source: ValueOpaque source metadata (sourceKey / sourceSignature / …).
solids: Vec<String>Member solid scene names, already namespaced ({id}:{part solid name}).
ports: Vec<String>The part’s harness PORT ids, namespaced ({id}:{part port id}).
Implementations§
Source§impl ComponentSnapshot
impl ComponentSnapshot
Sourcepub fn affine(&self) -> AffineTransform
pub fn affine(&self) -> AffineTransform
The pose as the kernel’s transform type (for transform_brep and the
structured STEP writer).
Trait Implementations§
Source§impl Clone for ComponentSnapshot
impl Clone for ComponentSnapshot
Source§impl Debug for ComponentSnapshot
impl Debug for ComponentSnapshot
Source§impl<'de> Deserialize<'de> for ComponentSnapshot
impl<'de> Deserialize<'de> for ComponentSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<&ComponentRecord> for ComponentSnapshot
impl From<&ComponentRecord> for ComponentSnapshot
Source§fn from(record: &ComponentRecord) -> Self
fn from(record: &ComponentRecord) -> Self
Source§impl PartialEq for ComponentSnapshot
impl PartialEq for ComponentSnapshot
Source§impl Serialize for ComponentSnapshot
impl Serialize for ComponentSnapshot
impl StructuralPartialEq for ComponentSnapshot
Auto Trait Implementations§
impl Freeze for ComponentSnapshot
impl RefUnwindSafe for ComponentSnapshot
impl Send for ComponentSnapshot
impl Sync for ComponentSnapshot
impl Unpin for ComponentSnapshot
impl UnsafeUnpin for ComponentSnapshot
impl UnwindSafe for ComponentSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more