pub struct Dims {
pub size: [Float; 2],
pub enc: [Float; 2],
}Expand description
Physical dimensions of a component including size and enclosure.
This struct represents the physical layout parameters of memory components, including the core size and any required enclosure or spacing around it.
Fields§
§size: [Float; 2]Width and height of the component in micrometers [width, height].
enc: [Float; 2]Horizontal and vertical enclosure requirements in micrometers [x_enc, y_enc].
Implementations§
Source§impl Dims
impl Dims
Sourcepub fn from(width: Float, height: Float, enc_x: Float, enc_y: Float) -> Dims
pub fn from(width: Float, height: Float, enc_x: Float, enc_y: Float) -> Dims
Creates a new Dims instance with specified dimensions.
§Arguments
width- Width of the component in micrometersheight- Height of the component in micrometersenc_x- Horizontal enclosure requirement in micrometersenc_y- Vertical enclosure requirement in micrometers
§Returns
A Dims struct with the specified values
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dims
impl<'de> Deserialize<'de> for Dims
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 Copy for Dims
Auto Trait Implementations§
impl Freeze for Dims
impl RefUnwindSafe for Dims
impl Send for Dims
impl Sync for Dims
impl Unpin for Dims
impl UnwindSafe for Dims
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