Enum bones_scripting::lua::bindings::ecsref::EcsRefBorrowError
source · pub enum EcsRefBorrowError {
MissingResource,
MissingComponent {
entity: Entity,
component_name: &'static str,
},
AssetNotLoaded,
FieldNotFound(Ustr),
}Expand description
An error that occurs when borrowing an EcsRef.
Variants§
Trait Implementations§
source§impl Debug for EcsRefBorrowError
impl Debug for EcsRefBorrowError
source§impl Display for EcsRefBorrowError
impl Display for EcsRefBorrowError
source§impl Error for EcsRefBorrowError
impl Error for EcsRefBorrowError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for EcsRefBorrowError
impl RefUnwindSafe for EcsRefBorrowError
impl Send for EcsRefBorrowError
impl Sync for EcsRefBorrowError
impl Unpin for EcsRefBorrowError
impl UnwindSafe for EcsRefBorrowError
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