pub struct ByteLightmapOffset {
pub byte_offset: i32,
}Expand description
An offset specified in number of bytes.
Fields§
§byte_offset: i32The offset from the start of the lightmap, in bytes, that the lightmap for this face starts.
Trait Implementations§
Source§impl BspValue for ByteLightmapOffset
impl BspValue for ByteLightmapOffset
Source§fn bsp_parse(reader: &mut BspByteReader<'_>) -> BspResult<Self>
fn bsp_parse(reader: &mut BspByteReader<'_>) -> BspResult<Self>
Parse this value, advancing the byte reader.
Source§fn bsp_struct_size(ctx: &BspParseContext) -> usize
fn bsp_struct_size(ctx: &BspParseContext) -> usize
How big this value is in the BSP file in bytes. If it is a variable size, return
unimplemented!(), as calling this on variable-sized values would be a bug.Source§impl Clone for ByteLightmapOffset
impl Clone for ByteLightmapOffset
Source§fn clone(&self) -> ByteLightmapOffset
fn clone(&self) -> ByteLightmapOffset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ByteLightmapOffset
impl Debug for ByteLightmapOffset
Source§impl From<ByteLightmapOffset> for LightmapOffset
impl From<ByteLightmapOffset> for LightmapOffset
Source§fn from(value: ByteLightmapOffset) -> Self
fn from(value: ByteLightmapOffset) -> Self
Converts to this type from the input type.
impl Copy for ByteLightmapOffset
Auto Trait Implementations§
impl Freeze for ByteLightmapOffset
impl RefUnwindSafe for ByteLightmapOffset
impl Send for ByteLightmapOffset
impl Sync for ByteLightmapOffset
impl Unpin for ByteLightmapOffset
impl UnwindSafe for ByteLightmapOffset
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