pub struct ProgramMemoryPlan {
pub allocations: Vec<ProgramAllocation>,
pub resource_allocations: Vec<ProgramAllocationId>,
}Fields§
§allocations: Vec<ProgramAllocation>§resource_allocations: Vec<ProgramAllocationId>Implementations§
Source§impl ProgramMemoryPlan
impl ProgramMemoryPlan
pub fn allocation_for( &self, resource: ProgramResourceId, ) -> Result<ProgramAllocationId>
pub fn allocated_elements(&self) -> Result<usize>
Trait Implementations§
Source§impl Clone for ProgramMemoryPlan
impl Clone for ProgramMemoryPlan
Source§impl Debug for ProgramMemoryPlan
impl Debug for ProgramMemoryPlan
impl Eq for ProgramMemoryPlan
Source§impl PartialEq for ProgramMemoryPlan
impl PartialEq for ProgramMemoryPlan
impl StructuralPartialEq for ProgramMemoryPlan
Auto Trait Implementations§
impl Freeze for ProgramMemoryPlan
impl RefUnwindSafe for ProgramMemoryPlan
impl Send for ProgramMemoryPlan
impl Sync for ProgramMemoryPlan
impl Unpin for ProgramMemoryPlan
impl UnsafeUnpin for ProgramMemoryPlan
impl UnwindSafe for ProgramMemoryPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.