pub struct ProjectileHandle(/* private fields */);
Expand description
Strongly-typed handle to an object.
Use get
or as_ref
to access the underlying object.
Implementations§
Source§impl ProjectileHandle
impl ProjectileHandle
Sourcepub const fn from_handle(handle: BSUntypedPointerHandle) -> Self
pub const fn from_handle(handle: BSUntypedPointerHandle) -> Self
Creates a typed handle from an untyped handle.
Source§impl ProjectileHandle
impl ProjectileHandle
Sourcepub fn get(&self) -> NiPointer<Projectile>
pub fn get(&self) -> NiPointer<Projectile>
Retrieves a smart pointer to the underlying object.
Sourcepub fn as_ref(&self) -> Option<&Projectile>
pub fn as_ref(&self) -> Option<&Projectile>
Attempts to get a shared reference to the object.
Trait Implementations§
Source§impl Clone for ProjectileHandle
impl Clone for ProjectileHandle
Source§fn clone(&self) -> ProjectileHandle
fn clone(&self) -> ProjectileHandle
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 ProjectileHandle
impl Debug for ProjectileHandle
Source§impl Default for ProjectileHandle
impl Default for ProjectileHandle
Source§fn default() -> ProjectileHandle
fn default() -> ProjectileHandle
Returns the “default value” for a type. Read more
Source§impl From<BSPointerHandle<Projectile>> for ProjectileHandle
impl From<BSPointerHandle<Projectile>> for ProjectileHandle
Source§fn from(inner: BSPointerHandle<Projectile>) -> Self
fn from(inner: BSPointerHandle<Projectile>) -> Self
Converts to this type from the input type.
Source§impl From<ProjectileHandle> for BSPointerHandle<Projectile>
impl From<ProjectileHandle> for BSPointerHandle<Projectile>
Source§fn from(wrapper: ProjectileHandle) -> Self
fn from(wrapper: ProjectileHandle) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProjectileHandle
impl PartialEq for ProjectileHandle
impl StructuralPartialEq for ProjectileHandle
impl Zeroable for ProjectileHandle
Auto Trait Implementations§
impl Freeze for ProjectileHandle
impl RefUnwindSafe for ProjectileHandle
impl Send for ProjectileHandle
impl Sync for ProjectileHandle
impl Unpin for ProjectileHandle
impl UnwindSafe for ProjectileHandle
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