pub struct Dimensions {
pub length: f64,
pub width: f64,
pub height: f64,
pub unit: Unit,
}Expand description
Dimensions : A set of measurements for a three-dimensional object.
Fields§
§length: f64The length of the container.
width: f64The width of the container.
height: f64The height of the container.
unit: UnitThe unit of these measurements.
Implementations§
Source§impl Dimensions
impl Dimensions
Trait Implementations§
Source§impl Clone for Dimensions
impl Clone for Dimensions
Source§fn clone(&self) -> Dimensions
fn clone(&self) -> Dimensions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Dimensions
impl Debug for Dimensions
Source§impl Default for Dimensions
impl Default for Dimensions
Source§fn default() -> Dimensions
fn default() -> Dimensions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Dimensions
impl<'de> Deserialize<'de> for Dimensions
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
Source§impl PartialEq for Dimensions
impl PartialEq for Dimensions
Source§impl Serialize for Dimensions
impl Serialize for Dimensions
impl StructuralPartialEq for Dimensions
Auto Trait Implementations§
impl Freeze for Dimensions
impl RefUnwindSafe for Dimensions
impl Send for Dimensions
impl Sync for Dimensions
impl Unpin for Dimensions
impl UnwindSafe for Dimensions
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