pub struct ResourceAllocation { /* private fields */ }Implementations§
Source§impl ResourceAllocation
impl ResourceAllocation
pub fn resource_id(&self) -> &ResourceId
pub const fn size_bytes(&self) -> u64
pub const fn per_instance_bytes(&self) -> u64
pub const fn instance_stride_bytes(&self) -> u64
pub const fn instance_count(&self) -> u32
pub fn scoped_offset_bytes( &self, base_offset_bytes: u64, _active_sequence_slot: u32, ) -> Result<u64, VNextError>
pub const fn alignment_bytes(&self) -> u64
pub const fn usage(&self) -> BufferUsage
pub const fn element_type(&self) -> ElementType
pub const fn lifetime(&self) -> AllocationLifetime
pub fn kind(&self) -> &AllocationKind
pub fn storage(&self) -> &DynamicStorageContract
pub fn buffer_request(&self) -> Result<BufferRequest, VNextError>
Trait Implementations§
Source§impl Clone for ResourceAllocation
impl Clone for ResourceAllocation
Source§fn clone(&self) -> ResourceAllocation
fn clone(&self) -> ResourceAllocation
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 moreSource§impl Debug for ResourceAllocation
impl Debug for ResourceAllocation
Source§impl<'de> Deserialize<'de> for ResourceAllocation
impl<'de> Deserialize<'de> for ResourceAllocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResourceAllocation
Source§impl PartialEq for ResourceAllocation
impl PartialEq for ResourceAllocation
Source§impl Serialize for ResourceAllocation
impl Serialize for ResourceAllocation
impl StructuralPartialEq for ResourceAllocation
Auto Trait Implementations§
impl Freeze for ResourceAllocation
impl RefUnwindSafe for ResourceAllocation
impl Send for ResourceAllocation
impl Sync for ResourceAllocation
impl Unpin for ResourceAllocation
impl UnsafeUnpin for ResourceAllocation
impl UnwindSafe for ResourceAllocation
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