pub struct Sphere { pub center: Point3, pub radius: f64, pub material: Box<dyn Material>, }
center: Point3
radius: f64
material: Box<dyn Material>
TypeId
self
Returns the argument unchanged.
Calls U::from(self).
U::from(self)
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
From<T> for U