#[repr(C)]pub struct Single {
pub m_value: f32,
}Expand description
Fields§
§m_value: f32Implementations§
Source§impl Single
impl Single
pub fn min_value() -> f32
pub fn set_min_value(value: f32)
pub fn epsilon() -> f32
pub fn set_epsilon(value: f32)
pub fn max_value() -> f32
pub fn set_max_value(value: f32)
pub fn positive_infinity() -> f32
pub fn set_positive_infinity(value: f32)
pub fn negative_infinity() -> f32
pub fn set_negative_infinity(value: f32)
pub fn na_n() -> f32
pub fn set_na_n(value: f32)
Source§impl Single
impl Single
Sourcepub fn is_infinity(f: impl Into<f32>) -> bool
pub fn is_infinity(f: impl Into<f32>) -> bool
IsInfinity(f32) overload
Sourcepub fn is_positive_infinity(f: impl Into<f32>) -> bool
pub fn is_positive_infinity(f: impl Into<f32>) -> bool
IsPositiveInfinity(f32) overload
Sourcepub fn is_negative_infinity(f: impl Into<f32>) -> bool
pub fn is_negative_infinity(f: impl Into<f32>) -> bool
IsNegativeInfinity(f32) overload
Sourcepub fn parse(s: impl Into<Il2CppString>) -> f32
pub fn parse(s: impl Into<Il2CppString>) -> f32
Parse(::unity::Il2CppString) overload
Sourcepub fn try_parse(s: impl Into<Il2CppString>) -> (bool, f32)
pub fn try_parse(s: impl Into<Il2CppString>) -> (bool, f32)
TryParse(::unity::Il2CppString, *mutf32) overload
Source§impl Single
impl Single
Sourcepub fn compare_to(&mut self, value: impl Into<Object>) -> i32
pub fn compare_to(&mut self, value: impl Into<Object>) -> i32
CompareTo(crate::system::object::Object) overload
Sourcepub fn compare_to_2(&mut self, value: impl Into<f32>) -> i32
pub fn compare_to_2(&mut self, value: impl Into<f32>) -> i32
CompareTo(f32) overload
Sourcepub fn equals(&mut self, obj: impl Into<Object>) -> bool
pub fn equals(&mut self, obj: impl Into<Object>) -> bool
Equals(crate::system::object::Object) overload
Sourcepub fn get_hash_code(&mut self) -> i32
pub fn get_hash_code(&mut self) -> i32
GetHashCode() overload
Sourcepub fn to_string(&mut self) -> Il2CppString
pub fn to_string(&mut self) -> Il2CppString
ToString() overload
Sourcepub fn to_string_2(&mut self, format: impl Into<Il2CppString>) -> Il2CppString
pub fn to_string_2(&mut self, format: impl Into<Il2CppString>) -> Il2CppString
ToString(::unity::Il2CppString) overload
Source§impl Single
impl Single
pub fn is_infinity_method_info() -> &'static MethodInfo
pub fn is_positive_infinity_method_info() -> &'static MethodInfo
pub fn is_negative_infinity_method_info() -> &'static MethodInfo
pub fn is_na_n_method_info() -> &'static MethodInfo
pub fn compare_to_method_info() -> &'static MethodInfo
pub fn compare_to_2_method_info() -> &'static MethodInfo
pub fn equals_method_info() -> &'static MethodInfo
pub fn equals_2_method_info() -> &'static MethodInfo
pub fn get_hash_code_method_info() -> &'static MethodInfo
pub fn to_string_method_info() -> &'static MethodInfo
pub fn to_string_2_method_info() -> &'static MethodInfo
pub fn parse_method_info() -> &'static MethodInfo
pub fn try_parse_method_info() -> &'static MethodInfo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Single
impl RefUnwindSafe for Single
impl Send for Single
impl Sync for Single
impl Unpin for Single
impl UnwindSafe for Single
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> 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)