pub struct SectionLight {
pub block: Box<[u8; 2048]>,
pub sky: Option<Box<[u8; 2048]>>,
}Expand description
1.8 light of one section, as sent in the chunk packet (never recomputed locally).
Fields§
§block: Box<[u8; 2048]>Block light nibbles, index block_index (low nibble = even index).
sky: Option<Box<[u8; 2048]>>Sky light nibbles (None in dimensions without sky).
Trait Implementations§
Source§impl Clone for SectionLight
impl Clone for SectionLight
Auto Trait Implementations§
impl Forget for SectionLight
impl Freeze for SectionLight
impl Move for SectionLight
impl RefUnwindSafe for SectionLight
impl Send for SectionLight
impl Sync for SectionLight
impl Unpin for SectionLight
impl UnsafeUnpin for SectionLight
impl UnwindSafe for SectionLight
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