pub struct CompositeObject<T: Dimensions + Volume + SurfaceArea> {
pub layers: Vec<Object<T>>,
}Fields§
§layers: Vec<Object<T>>Implementations§
Source§impl<T: Dimensions + Volume + SurfaceArea> CompositeObject<T>
impl<T: Dimensions + Volume + SurfaceArea> CompositeObject<T>
pub fn new(layers: Vec<Object<T>>) -> Self
pub fn total_mass(&self) -> f64
pub fn average_conductivity(&self) -> f32
pub fn weakest_strength(&self) -> f32
Auto Trait Implementations§
impl<T> Freeze for CompositeObject<T>
impl<T> RefUnwindSafe for CompositeObject<T>where
T: RefUnwindSafe,
impl<T> Send for CompositeObject<T>where
T: Send,
impl<T> Sync for CompositeObject<T>where
T: Sync,
impl<T> Unpin for CompositeObject<T>where
T: Unpin,
impl<T> UnwindSafe for CompositeObject<T>where
T: UnwindSafe,
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