pub struct SpatialQueryError {
kind: SpatialQueryErrorKind,
}Expand description
Typed spatial-index maintenance failure.
Fields§
§kind: SpatialQueryErrorKindImplementations§
Source§impl SpatialQueryError
impl SpatialQueryError
Sourcepub const fn duplicate_actor(actor: EnemyIdx) -> Self
pub const fn duplicate_actor(actor: EnemyIdx) -> Self
Reports an actor already present in the index.
Sourcepub const fn missing_actor(actor: EnemyIdx) -> Self
pub const fn missing_actor(actor: EnemyIdx) -> Self
Reports an actor absent from the index.
Sourcepub const fn transform_mismatch(actor: EnemyIdx) -> Self
pub const fn transform_mismatch(actor: EnemyIdx) -> Self
Reports a transform differing from the indexed value.
Sourcepub const fn non_finite_transform() -> Self
pub const fn non_finite_transform() -> Self
Reports a non-finite transform.
Sourcepub const fn blocked_transform() -> Self
pub const fn blocked_transform() -> Self
Reports a transform intersecting static geometry.
Sourcepub const fn missing_layer(layer: SpatialLayerId) -> Self
pub const fn missing_layer(layer: SpatialLayerId) -> Self
Reports a missing spatial layer.
Trait Implementations§
Source§impl Clone for SpatialQueryError
impl Clone for SpatialQueryError
Source§fn clone(&self) -> SpatialQueryError
fn clone(&self) -> SpatialQueryError
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 SpatialQueryError
impl Debug for SpatialQueryError
Source§impl Display for SpatialQueryError
impl Display for SpatialQueryError
Source§impl Error for SpatialQueryError
impl Error for SpatialQueryError
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 PartialEq for SpatialQueryError
impl PartialEq for SpatialQueryError
impl Copy for SpatialQueryError
impl Eq for SpatialQueryError
impl StructuralPartialEq for SpatialQueryError
Auto Trait Implementations§
impl Freeze for SpatialQueryError
impl RefUnwindSafe for SpatialQueryError
impl Send for SpatialQueryError
impl Sync for SpatialQueryError
impl Unpin for SpatialQueryError
impl UnsafeUnpin for SpatialQueryError
impl UnwindSafe for SpatialQueryError
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,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SpecConfig for T
impl<T> SpecConfig for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more