pub struct ComponentBounds { /* private fields */ }
Expand description
Memory bounds for a component.
Implementations§
Source§impl ComponentBounds
impl ComponentBounds
Sourcepub fn total_minimum_required_bytes(&self) -> usize
pub fn total_minimum_required_bytes(&self) -> usize
Gets the total minimum required bytes for this component and all subcomponents.
Sourcepub fn total_firm_limit_bytes(&self) -> usize
pub fn total_firm_limit_bytes(&self) -> usize
Gets the total firm limit bytes for this component and all subcomponents.
The firm limit includes the minimum required bytes.
Sourcepub fn subcomponents(
&self,
) -> impl IntoIterator<Item = (&String, &ComponentBounds)>
pub fn subcomponents( &self, ) -> impl IntoIterator<Item = (&String, &ComponentBounds)>
Returns an iterator of all subcomponents within this component.
Only iterates over direct subcomponents, not the subcomponents of those subcomponents, and so on.
Trait Implementations§
Source§impl Clone for ComponentBounds
impl Clone for ComponentBounds
Source§fn clone(&self) -> ComponentBounds
fn clone(&self) -> ComponentBounds
Returns a duplicate of the value. Read more
1.0.0 · 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 ComponentBounds
impl Debug for ComponentBounds
Source§impl Default for ComponentBounds
impl Default for ComponentBounds
Source§fn default() -> ComponentBounds
fn default() -> ComponentBounds
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComponentBounds
impl RefUnwindSafe for ComponentBounds
impl Send for ComponentBounds
impl Sync for ComponentBounds
impl Unpin for ComponentBounds
impl UnwindSafe for ComponentBounds
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Track for T
impl<T> Track for T
Source§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self> ⓘ
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self> ⓘ
Instruments this type by attaching the given allocation group token, returning a
Tracked
wrapper. Read more