Enum hashbrown::raw::Fallibility
source · enum Fallibility {
Fallible,
Infallible,
}
Expand description
Whether memory allocation errors should return an error or abort.
Variants§
Implementations§
source§impl Fallibility
impl Fallibility
sourcefn capacity_overflow(self) -> TryReserveError
fn capacity_overflow(self) -> TryReserveError
Error to return on capacity overflow.
sourcefn alloc_err(self, layout: Layout) -> TryReserveError
fn alloc_err(self, layout: Layout) -> TryReserveError
Error to return on allocation error.
Trait Implementations§
source§impl Clone for Fallibility
impl Clone for Fallibility
source§fn clone(&self) -> Fallibility
fn clone(&self) -> Fallibility
Returns a copy 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 moreimpl Copy for Fallibility
Auto Trait Implementations§
impl RefUnwindSafe for Fallibility
impl Send for Fallibility
impl Sync for Fallibility
impl Unpin for Fallibility
impl UnwindSafe for Fallibility
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