Enum ark_api::world::EntityValueError
source · #[non_exhaustive]
pub enum EntityValueError {
Show 13 variants
NanValue,
InfiniteParamValue,
InvalidComponentType,
InvalidComponentParameterId,
InvalidComponent,
InvalidEntityKey,
InvalidParentOfParent,
IncompatibleValueType,
IncompatibleValue,
Unsettable,
Ungettable,
NotAvailable,
Unknown(String),
}Expand description
Error value that is returned from get/set entity value functions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NanValue
The component parameter value is a NaN value.
InfiniteParamValue
The component parameter value is an infinite value.
InvalidComponentType
The supplied component type is invalid.
InvalidComponentParameterId
The supplied component parameter id is invalid.
InvalidComponent
The component did not exist.
InvalidEntityKey
Invalid supplied entity key
InvalidParentOfParent
Invalid parent of parent (a parent was pointing to an invalid entity)
IncompatibleValueType
Trying to set an entity value that is incompatible with the component parameter value type.
IncompatibleValue
Trying to set an entity value that is incompatible with the component parameter value.
Unsettable
Could not set the entity component parameter value.
Ungettable
Could not get the entity component parameter value.
NotAvailable
The component was not available.
Unknown(String)
Unknown error occurred.
Trait Implementations§
source§impl Clone for EntityValueError
impl Clone for EntityValueError
source§fn clone(&self) -> EntityValueError
fn clone(&self) -> EntityValueError
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 moresource§impl Debug for EntityValueError
impl Debug for EntityValueError
source§impl Display for EntityValueError
impl Display for EntityValueError
source§impl Error for EntityValueError
impl Error for EntityValueError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<EntityValueError> for EntityValueError
impl From<EntityValueError> for EntityValueError
source§fn from(error: EntityValueError) -> Self
fn from(error: EntityValueError) -> Self
Converts to this type from the input type.
source§impl PartialEq<EntityValueError> for EntityValueError
impl PartialEq<EntityValueError> for EntityValueError
source§fn eq(&self, other: &EntityValueError) -> bool
fn eq(&self, other: &EntityValueError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for EntityValueError
Auto Trait Implementations§
impl RefUnwindSafe for EntityValueError
impl Send for EntityValueError
impl Sync for EntityValueError
impl Unpin for EntityValueError
impl UnwindSafe for EntityValueError
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