pub enum EntityAccessErr {
UseAfterFree,
NullReference,
}Expand description
Possible errors when accessing allocated entities.
分配实体访问时可能出现的错误.
Variants§
UseAfterFree
The entity has been freed and cannot be accessed.
实体已被释放,无法访问。
NullReference
The pointer is null and does not reference any entity.
指针为空,未引用任何实体。
Trait Implementations§
Source§impl Debug for EntityAccessErr
impl Debug for EntityAccessErr
Source§impl Display for EntityAccessErr
impl Display for EntityAccessErr
Source§impl Error for EntityAccessErr
impl Error for EntityAccessErr
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for EntityAccessErr
impl RefUnwindSafe for EntityAccessErr
impl Send for EntityAccessErr
impl Sync for EntityAccessErr
impl Unpin for EntityAccessErr
impl UnwindSafe for EntityAccessErr
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