pub struct DetectedTargetInfo {
pub is_detected: bool,
pub is_visible: bool,
pub last_time_seen: f64,
pub type_known: bool,
pub distance_known: bool,
pub last_position: LuaVec3,
pub last_velocity: LuaVec3,
}
Fields§
§is_detected: bool
§is_visible: bool
§last_time_seen: f64
§type_known: bool
§distance_known: bool
§last_position: LuaVec3
§last_velocity: LuaVec3
Trait Implementations§
Source§impl Clone for DetectedTargetInfo
impl Clone for DetectedTargetInfo
Source§fn clone(&self) -> DetectedTargetInfo
fn clone(&self) -> DetectedTargetInfo
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 DetectedTargetInfo
impl Debug for DetectedTargetInfo
Source§impl<'lua> FromLuaMulti<'lua> for DetectedTargetInfo
impl<'lua> FromLuaMulti<'lua> for DetectedTargetInfo
Source§fn from_lua_multi(
values: LuaMultiValue<'lua>,
lua: &'lua Lua,
) -> LuaResult<Self>
fn from_lua_multi( values: LuaMultiValue<'lua>, lua: &'lua Lua, ) -> LuaResult<Self>
Performs the conversion. Read more
Auto Trait Implementations§
impl Freeze for DetectedTargetInfo
impl RefUnwindSafe for DetectedTargetInfo
impl Send for DetectedTargetInfo
impl Sync for DetectedTargetInfo
impl Unpin for DetectedTargetInfo
impl UnwindSafe for DetectedTargetInfo
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,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.