pub struct DefaultValueAttribute(/* private fields */);Expand description
IL2CPP class: UnityEngine.Internal.DefaultValueAttribute
Implementations§
Source§impl DefaultValueAttribute
impl DefaultValueAttribute
pub fn ctor_method_info() -> &'static MethodInfo
pub fn get_value_method_info() -> &'static MethodInfo
pub fn equals_method_info() -> &'static MethodInfo
pub fn get_hash_code_method_info() -> &'static MethodInfo
Source§impl DefaultValueAttribute
impl DefaultValueAttribute
Sourcepub unsafe fn equals(this: impl Into<IlInstance>, obj: Object) -> bool
pub unsafe fn equals(this: impl Into<IlInstance>, obj: Object) -> bool
Direct (non-virtual) call to DefaultValueAttribute’s own Equals. Bypasses the vtable, so it won’t hit an override/patch — use it for base calls.
Sourcepub unsafe fn get_hash_code(this: impl Into<IlInstance>) -> i32
pub unsafe fn get_hash_code(this: impl Into<IlInstance>) -> i32
Direct (non-virtual) call to DefaultValueAttribute’s own GetHashCode. Bypasses the vtable, so it won’t hit an override/patch — use it for base calls.
Source§impl DefaultValueAttribute
impl DefaultValueAttribute
Sourcepub fn new(value: Il2CppString) -> Self
pub fn new(value: Il2CppString) -> Self
.ctor(::unity::Il2CppString) — overload selector
Trait Implementations§
Source§impl Clone for DefaultValueAttribute
impl Clone for DefaultValueAttribute
Source§fn clone(&self) -> DefaultValueAttribute
fn clone(&self) -> DefaultValueAttribute
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FromIlInstance for DefaultValueAttribute
impl FromIlInstance for DefaultValueAttribute
fn from_il_instance(instance: IlInstance) -> Self
fn instantiate() -> Option<Self>
§fn instantiate_with_class(class: Class) -> Option<Self>
fn instantiate_with_class(class: Class) -> Option<Self>
Caller swears
class is a subtype of Self or layout compatibleSource§impl IDefaultValueAttribute for DefaultValueAttribute
impl IDefaultValueAttribute for DefaultValueAttribute
fn default_value(self) -> IlInstance
fn set_default_value(self, value: IlInstance)
impl Copy for DefaultValueAttribute
Auto Trait Implementations§
impl Freeze for DefaultValueAttribute
impl RefUnwindSafe for DefaultValueAttribute
impl !Send for DefaultValueAttribute
impl !Sync for DefaultValueAttribute
impl Unpin for DefaultValueAttribute
impl UnwindSafe for DefaultValueAttribute
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Cast for Twhere
T: SystemObject,
impl<T> Cast for Twhere
T: SystemObject,
fn get_class(self) -> Class
fn is_null(self) -> bool
fn rebind_class(self, new_class: Class)
fn override_class(self) -> Class
fn is_instance_of<T>(self) -> boolwhere
T: ClassIdentity,
fn is_direct_subclass_of<T>(self) -> boolwhere
T: ClassIdentity,
fn try_cast<T>(self) -> Option<T>where
T: ClassIdentity + FromIlInstance,
§unsafe fn cast<T>(self) -> Twhere
T: ClassIdentity + FromIlInstance,
unsafe fn cast<T>(self) -> Twhere
T: ClassIdentity + FromIlInstance,
Safety Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)