pub struct HitRecord<'a> {
pub point: Point3,
pub normal: Vector3,
pub t: f64,
pub front_face: bool,
pub material: &'a Box<dyn Material>,
}
Fields§
§point: Point3
§normal: Vector3
§t: f64
§front_face: bool
§material: &'a Box<dyn Material>
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HitRecord<'a>
impl<'a> !RefUnwindSafe for HitRecord<'a>
impl<'a> !Send for HitRecord<'a>
impl<'a> !Sync for HitRecord<'a>
impl<'a> Unpin for HitRecord<'a>
impl<'a> !UnwindSafe for HitRecord<'a>
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