Struct std::alloc::AllocError
source · pub struct AllocError;
🔬This is a nightly-only experimental API. (
allocator_api
#32838)Expand description
AllocError
错误表示分配失败,这可能是由于资源耗尽或将给定输入参数与此分配器组合在一起时出错所致。
Trait Implementations§
source§impl Clone for AllocError
impl Clone for AllocError
source§fn clone(&self) -> AllocError
fn clone(&self) -> AllocError
返回值的副本。 Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source
执行复制分配。 Read moresource§impl Debug for AllocError
impl Debug for AllocError
source§impl Display for AllocError
impl Display for AllocError
source§impl Error for AllocError
impl Error for AllocError
source§impl PartialEq<AllocError> for AllocError
impl PartialEq<AllocError> for AllocError
impl Copy for AllocError
impl Eq for AllocError
impl StructuralEq for AllocError
impl StructuralPartialEq for AllocError
Auto Trait Implementations§
impl RefUnwindSafe for AllocError
impl Send for AllocError
impl Sync for AllocError
impl Unpin for AllocError
impl UnwindSafe for AllocError
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
从拥有的值中借用。 Read more