pub struct CastDat {
pub col: i32,
pub dist: i32,
}Expand description
One ray-cast hit record. Voxlap calls this castdat
(voxlap5.c:124..127):
typedef struct { int32_t col, dist; } castdat;col is a Voxlap-style packed colour (0x80RRGGBB); dist is a
fixed-point distance to the hit slab.
Fields§
§col: i32§dist: i32Trait Implementations§
impl Copy for CastDat
impl Eq for CastDat
impl StructuralPartialEq for CastDat
Auto Trait Implementations§
impl Freeze for CastDat
impl RefUnwindSafe for CastDat
impl Send for CastDat
impl Sync for CastDat
impl Unpin for CastDat
impl UnsafeUnpin for CastDat
impl UnwindSafe for CastDat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more