pub struct NoSuchEntity;Expand description
Error that may be returned when an entity is not found in the world.
Trait Implementations§
Source§impl Clone for NoSuchEntity
impl Clone for NoSuchEntity
Source§fn clone(&self) -> NoSuchEntity
fn clone(&self) -> NoSuchEntity
Returns a duplicate 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 moreSource§impl Debug for NoSuchEntity
impl Debug for NoSuchEntity
Source§impl Display for NoSuchEntity
impl Display for NoSuchEntity
Source§impl Error for NoSuchEntity
Available on crate feature std only.
impl Error for NoSuchEntity
Available on crate feature
std only.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()
Source§impl From<NoSuchEntity> for EntityError
impl From<NoSuchEntity> for EntityError
Source§fn from(_: NoSuchEntity) -> Self
fn from(_: NoSuchEntity) -> Self
Converts to this type from the input type.
Source§impl Hash for NoSuchEntity
impl Hash for NoSuchEntity
Source§impl Ord for NoSuchEntity
impl Ord for NoSuchEntity
Source§fn cmp(&self, other: &NoSuchEntity) -> Ordering
fn cmp(&self, other: &NoSuchEntity) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NoSuchEntity
impl PartialEq for NoSuchEntity
Source§impl PartialOrd for NoSuchEntity
impl PartialOrd for NoSuchEntity
impl Copy for NoSuchEntity
impl Eq for NoSuchEntity
impl StructuralPartialEq for NoSuchEntity
Auto Trait Implementations§
impl Freeze for NoSuchEntity
impl RefUnwindSafe for NoSuchEntity
impl Send for NoSuchEntity
impl Sync for NoSuchEntity
impl Unpin for NoSuchEntity
impl UnwindSafe for NoSuchEntity
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