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 Freeze for Fallibility
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)