Struct red4ext_rs::types::ScriptRef
source · pub struct ScriptRef<'a, T>(/* private fields */);
Expand description
A reference to local script data.
Implementations§
source§impl<'a, T: NativeRepr> ScriptRef<'a, T>
impl<'a, T: NativeRepr> ScriptRef<'a, T>
sourcepub fn new(val: &'a mut T) -> Option<Self>
pub fn new(val: &'a mut T) -> Option<Self>
Creates a new reference pointing to the provided value.
sourcepub fn inner_type(&self) -> &Type
pub fn inner_type(&self) -> &Type
Returns the type of the value being referenced.
sourcepub fn is_defined(&self) -> bool
pub fn is_defined(&self) -> bool
Returns whether the reference is defined.
Trait Implementations§
source§impl<'a, A: NativeRepr> NativeRepr for ScriptRef<'a, A>
impl<'a, A: NativeRepr> NativeRepr for ScriptRef<'a, A>
Auto Trait Implementations§
impl<'a, T> Freeze for ScriptRef<'a, T>
impl<'a, T> !RefUnwindSafe for ScriptRef<'a, T>
impl<'a, T> !Send for ScriptRef<'a, T>
impl<'a, T> !Sync for ScriptRef<'a, T>
impl<'a, T> Unpin for ScriptRef<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for ScriptRef<'a, T>
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