Struct CubeFace
#[non_exhaustive]pub struct CubeFace<'a> {
pub sprite: &'a str,
pub uv: Option<[f32; 4]>,
}Expand description
One face of a native_draw_cube box: its sprite (mymod:entity/cog,
mymod:block/casing) and its UVs in texels of 16 per side, as a model
face’s uv (none takes the box’s own, as a model’s default).
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.sprite: &'a str§uv: Option<[f32; 4]>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CubeFace<'a>
impl<'a> RefUnwindSafe for CubeFace<'a>
impl<'a> Send for CubeFace<'a>
impl<'a> Sync for CubeFace<'a>
impl<'a> Unpin for CubeFace<'a>
impl<'a> UnsafeUnpin for CubeFace<'a>
impl<'a> UnwindSafe for CubeFace<'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