Skip to main content

UObjectRef

Struct UObjectRef 

Source
pub struct UObjectRef<T: UeClass> { /* private fields */ }

Implementations§

Source§

impl<T: UeClass> UObjectRef<T>

Source

pub fn null() -> Self

Source

pub unsafe fn from_raw(handle: UObjectHandle) -> Self

Source

pub fn raw(&self) -> UObjectHandle

Source

pub fn is_valid(&self) -> bool

Source

pub fn checked(&self) -> RustealResult<Checked<T>>

Source

pub fn cast<U: UeClass>(self) -> RustealResult<UObjectRef<U>>

Source

pub fn pin(self) -> RustealResult<Pinned<T>>

Source

pub fn get_name(&self) -> RustealResult<String>

Source

pub fn get_class(&self) -> RustealResult<UClassHandle>

Source

pub fn get_outer(&self) -> RustealResult<UObjectHandle>

Source

pub fn from_handle(handle: UObjectHandle) -> RustealResult<Self>

Source

pub fn class(&self) -> RustealResult<SubclassOf<T>>

Source

pub fn outer<U: UeClass>(&self) -> RustealResult<UObjectRef<U>>

Source

pub fn is_a<U: UeClass>(&self) -> bool

Source

pub fn implements<I: UeInterface + ?Sized>(&self) -> bool

Source

pub fn interface<I: UeInterface + ?Sized>( self, ) -> RustealResult<ScriptInterface<I>>

Source§

impl<T: HasParent> UObjectRef<T>

Source

pub fn upcast(self) -> UObjectRef<T::Parent>

Source§

impl<T: UeClass> UObjectRef<T>

Source

pub fn upcast_to<U: UeClass>(self) -> UObjectRef<U>
where T: Inherits<U>,

Trait Implementations§

Source§

impl<T: UeClass> Clone for UObjectRef<T>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: UeClass> ContainerElement for UObjectRef<T>

Source§

const BUF_SIZE: u32

Source§

unsafe fn read_from_buf(buf: *const u8, _written: u32) -> Self

Source§

unsafe fn write_to_buf(&self, buf: *mut u8) -> u32

Source§

const RAW_COPYABLE: bool = false

Source§

impl<T: UeClass> Copy for UObjectRef<T>

Source§

impl<T: UeClass> Debug for UObjectRef<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: UeClass> Default for UObjectRef<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T: HasParent> Deref for UObjectRef<T>

Source§

type Target = UObjectRef<<T as HasParent>::Parent>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &UObjectRef<T::Parent>

Dereferences the value.
Source§

impl<T: UeClass> Eq for UObjectRef<T>

Source§

impl<T: UeClass> Hash for UObjectRef<T>

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<T: UeClass> ObjectPointer for UObjectRef<T>

Source§

impl<T: UeClass> PartialEq for UObjectRef<T>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<T: UeClass> Send for UObjectRef<T>

Source§

impl<T: UeClass> UeHandle for UObjectRef<T>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.