Struct WorldLine
#[non_exhaustive]pub struct WorldLine {
pub from: [f64; 3],
pub to: [f64; 3],
pub color: u32,
pub width: f32,
pub depth: WorldDepth,
}Expand description
A world-space line, colored with 0xAARRGGBB and measured in screen pixels.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.from: [f64; 3]Starting position in blocks, before camera subtraction.
to: [f64; 3]Ending position in blocks, before camera subtraction.
color: u32Packed ARGB color, including alpha.
width: f32Finite, positive width in pixels.
depth: WorldDepthOcclusion behavior.
Implementations§
Trait Implementations§
impl Copy for WorldLine
impl StructuralPartialEq for WorldLine
Auto Trait Implementations§
impl Freeze for WorldLine
impl RefUnwindSafe for WorldLine
impl Send for WorldLine
impl Sync for WorldLine
impl Unpin for WorldLine
impl UnsafeUnpin for WorldLine
impl UnwindSafe for WorldLine
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