pub struct MeshBufferData { /* private fields */ }Expand description
Wraps the corresponding Model I/O mesh buffer data counterpart.
Implementations§
Source§impl MeshBufferData
impl MeshBufferData
Sourcepub fn new(length: usize, buffer_type: MeshBufferType) -> Result<Self>
pub fn new(length: usize, buffer_type: MeshBufferType) -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh buffer data counterpart.
Sourcepub fn from_bytes(data: &[u8], buffer_type: MeshBufferType) -> Result<Self>
pub fn from_bytes(data: &[u8], buffer_type: MeshBufferType) -> Result<Self>
Calls the corresponding Model I/O method on the wrapped Model I/O mesh buffer data counterpart.
Sourcepub fn data(&self) -> Vec<u8> ⓘ
pub fn data(&self) -> Vec<u8> ⓘ
Calls the corresponding Model I/O method on the wrapped Model I/O mesh buffer data counterpart.
Sourcepub fn map(&self) -> Result<MeshBufferMap>
pub fn map(&self) -> Result<MeshBufferMap>
Calls the corresponding Model I/O method on the wrapped Model I/O mesh buffer data counterpart.
Sourcepub fn as_mesh_buffer(&self) -> MeshBuffer
pub fn as_mesh_buffer(&self) -> MeshBuffer
Calls the corresponding Model I/O method on the wrapped Model I/O mesh buffer data counterpart.
Trait Implementations§
Source§impl Clone for MeshBufferData
impl Clone for MeshBufferData
Source§fn clone(&self) -> MeshBufferData
fn clone(&self) -> MeshBufferData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MeshBufferData
impl RefUnwindSafe for MeshBufferData
impl !Send for MeshBufferData
impl !Sync for MeshBufferData
impl Unpin for MeshBufferData
impl UnsafeUnpin for MeshBufferData
impl UnwindSafe for MeshBufferData
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