pub struct MeshBufferAllocator { /* private fields */ }Expand description
Wraps the corresponding Model I/O mesh buffer allocator counterpart.
Implementations§
Source§impl MeshBufferAllocator
impl MeshBufferAllocator
Sourcepub fn new_zone(&self, capacity: usize) -> Result<MeshBufferZone>
pub fn new_zone(&self, capacity: usize) -> Result<MeshBufferZone>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh buffer allocator counterpart.
Sourcepub fn new_zone_for_buffers(
&self,
sizes: &[usize],
types: &[MeshBufferType],
) -> Result<MeshBufferZone>
pub fn new_zone_for_buffers( &self, sizes: &[usize], types: &[MeshBufferType], ) -> Result<MeshBufferZone>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh buffer allocator counterpart.
Sourcepub fn new_buffer(
&self,
length: usize,
buffer_type: MeshBufferType,
) -> Result<MeshBuffer>
pub fn new_buffer( &self, length: usize, buffer_type: MeshBufferType, ) -> Result<MeshBuffer>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh buffer allocator counterpart.
Sourcepub fn new_buffer_with_data(
&self,
data: &[u8],
buffer_type: MeshBufferType,
) -> Result<MeshBuffer>
pub fn new_buffer_with_data( &self, data: &[u8], buffer_type: MeshBufferType, ) -> Result<MeshBuffer>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh buffer allocator counterpart.
Sourcepub fn new_buffer_from_zone(
&self,
zone: Option<&MeshBufferZone>,
length: usize,
buffer_type: MeshBufferType,
) -> Result<Option<MeshBuffer>>
pub fn new_buffer_from_zone( &self, zone: Option<&MeshBufferZone>, length: usize, buffer_type: MeshBufferType, ) -> Result<Option<MeshBuffer>>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh buffer allocator counterpart.
Sourcepub fn new_buffer_from_zone_with_data(
&self,
zone: Option<&MeshBufferZone>,
data: &[u8],
buffer_type: MeshBufferType,
) -> Result<Option<MeshBuffer>>
pub fn new_buffer_from_zone_with_data( &self, zone: Option<&MeshBufferZone>, data: &[u8], buffer_type: MeshBufferType, ) -> Result<Option<MeshBuffer>>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh buffer allocator counterpart.
Trait Implementations§
Source§impl Clone for MeshBufferAllocator
impl Clone for MeshBufferAllocator
Source§fn clone(&self) -> MeshBufferAllocator
fn clone(&self) -> MeshBufferAllocator
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 MeshBufferAllocator
impl RefUnwindSafe for MeshBufferAllocator
impl !Send for MeshBufferAllocator
impl !Sync for MeshBufferAllocator
impl Unpin for MeshBufferAllocator
impl UnsafeUnpin for MeshBufferAllocator
impl UnwindSafe for MeshBufferAllocator
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