Struct xc3_lib::vertex::OutlineBuffer
source · pub struct OutlineBuffer {
pub data_offset: u32,
pub vertex_count: u32,
pub vertex_size: u32,
pub unk: u32,
}Fields§
§data_offset: u32The offset into buffer.
vertex_count: u32§vertex_size: u32The size or stride of the vertex in bytes.
unk: u32Trait Implementations§
source§impl BinRead for OutlineBuffer
impl BinRead for OutlineBuffer
source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_> ) -> BinResult<Self>
source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moresource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moresource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moresource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moresource§fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming little-endian byte order, using
the given arguments. Read moresource§impl Clone for OutlineBuffer
impl Clone for OutlineBuffer
source§fn clone(&self) -> OutlineBuffer
fn clone(&self) -> OutlineBuffer
Returns a copy 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 OutlineBuffer
impl Debug for OutlineBuffer
source§impl PartialEq for OutlineBuffer
impl PartialEq for OutlineBuffer
source§fn eq(&self, other: &OutlineBuffer) -> bool
fn eq(&self, other: &OutlineBuffer) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Xc3Write for OutlineBuffer
impl Xc3Write for OutlineBuffer
§type Offsets<'offsets> = OutlineBufferOffsets<'offsets>
type Offsets<'offsets> = OutlineBufferOffsets<'offsets>
The type storing offset data to be used in Xc3WriteOffsets.
source§fn xc3_write<W: Write + Seek>(
&self,
writer: &mut W,
data_ptr: &mut u64
) -> Xc3Result<Self::Offsets<'_>>
fn xc3_write<W: Write + Seek>( &self, writer: &mut W, data_ptr: &mut u64 ) -> Xc3Result<Self::Offsets<'_>>
Write all fields and placeholder offsets
and set
data_ptr to the position after writing.
This should almost always be derived for non primitive types.source§fn should_write(&self) -> Option<bool>
fn should_write(&self) -> Option<bool>
Return
true if this type has no data and should not be written.impl StructuralPartialEq for OutlineBuffer
Auto Trait Implementations§
impl RefUnwindSafe for OutlineBuffer
impl Send for OutlineBuffer
impl Sync for OutlineBuffer
impl Unpin for OutlineBuffer
impl UnwindSafe for OutlineBuffer
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