pub struct NoBudget;Expand description
Budget that always allows materialization (used by super::CachedVec::wrap).
Trait Implementations§
Source§impl CachedVecBudget for NoBudget
impl CachedVecBudget for NoBudget
Source§fn try_reserve(&self, _: u64) -> bool
fn try_reserve(&self, _: u64) -> bool
Attempts to reserve one cache slot given the entry’s access count.
Implementations may enforce a minimum access threshold or evict entries.
Auto Trait Implementations§
impl Freeze for NoBudget
impl RefUnwindSafe for NoBudget
impl Send for NoBudget
impl Sync for NoBudget
impl Unpin for NoBudget
impl UnsafeUnpin for NoBudget
impl UnwindSafe for NoBudget
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more