pub struct Budgets {
pub global: Option<Budget>,
pub per_slot: Option<Budget>,
}Fields§
§global: Option<Budget>§per_slot: Option<Budget>Implementations§
Source§impl Budgets
impl Budgets
pub fn measure_chars(&self) -> bool
pub fn measure_lines(&self) -> bool
pub fn per_slot_active(&self) -> bool
pub fn global_active(&self) -> bool
pub fn per_slot_kind(&self) -> Option<BudgetKind>
pub fn global_kind(&self) -> Option<BudgetKind>
pub fn per_slot_cap_for(&self, kind: BudgetKind) -> Option<usize>
pub fn global_cap_for(&self, kind: BudgetKind) -> Option<usize>
pub fn per_slot_zero_cap(&self) -> bool
Trait Implementations§
impl Copy for Budgets
impl Eq for Budgets
impl StructuralPartialEq for Budgets
Auto Trait Implementations§
impl Freeze for Budgets
impl RefUnwindSafe for Budgets
impl Send for Budgets
impl Sync for Budgets
impl Unpin for Budgets
impl UnsafeUnpin for Budgets
impl UnwindSafe for Budgets
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<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.