Struct meshopt::utilities::VertexDataAdapter [−][src]
pub struct VertexDataAdapter<'a> { pub reader: Cursor<&'a [u8]>, pub vertex_count: usize, pub vertex_stride: usize, pub position_offset: usize, }
Fields
reader: Cursor<&'a [u8]>
vertex_count: usize
vertex_stride: usize
position_offset: usize
Implementations
impl<'a> VertexDataAdapter<'a>
[src]
impl<'a> VertexDataAdapter<'a>
[src]Trait Implementations
impl<'a> Read for VertexDataAdapter<'a>
[src]
impl<'a> Read for VertexDataAdapter<'a>
[src]fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
[src]
pub fn read_vectored(
&mut self,
bufs: &mut [IoSliceMut<'_>]
) -> Result<usize, Error>
1.36.0[src]
&mut self,
bufs: &mut [IoSliceMut<'_>]
) -> Result<usize, Error>
pub fn is_read_vectored(&self) -> bool
[src]
pub unsafe fn initializer(&self) -> Initializer
[src]
pub fn read_to_end(&mut self, buf: &mut Vec<u8, Global>) -> Result<usize, Error>
1.0.0[src]
pub fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
1.0.0[src]
pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
1.6.0[src]
pub fn by_ref(&mut self) -> &mut Self
1.0.0[src]
pub fn bytes(self) -> Bytes<Self>
1.0.0[src]
pub fn chain<R>(self, next: R) -> Chain<Self, R> where
R: Read,
1.0.0[src]
R: Read,