pub struct Model {
pub path: String,
pub offset: [f64; 3],
pub scale: [f64; 3],
pub rotation: [f64; 3],
}Expand description
The 3D model a footprint names, as KiCad’s (model …) entry gives it: the file and
its placement on the pads. The numbers are carried through as the file authored them,
millimetres for the offset and degrees for the rotation, for a host to interpret.
Fields§
§path: StringThe file the footprint names, often with a variable such as
${KICAD9_3DMODEL_DIR} that the host resolves.
offset: [f64; 3]§scale: [f64; 3]§rotation: [f64; 3]Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Forget for Model
impl Freeze for Model
impl Move for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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