pub struct Number(/* private fields */);Implementations§
Source§impl Number
impl Number
pub fn cls() -> &'static Class<Self>
pub fn cls_ptr() -> *const c_void
pub fn alloc() -> A<Self>
pub fn with_i8(value: i8) -> R<Self>
pub fn with_u8(value: u8) -> R<Self>
pub fn tagged_i8(value: i8) -> &'static Self
pub fn tagged_u8(value: u8) -> &'static Self
pub fn with_i16(value: i16) -> R<Self>
pub fn with_u16(value: u16) -> R<Self>
pub fn tagged_i16(value: i16) -> &'static Self
pub fn tagged_u16(value: u16) -> &'static Self
pub fn with_i32(value: i32) -> R<Self>
pub fn with_u32(value: u32) -> R<Self>
pub fn tagged_i32(value: i32) -> &'static Self
pub fn tagged_u32(value: u32) -> &'static Self
pub fn with_i64(value: i64) -> R<Self>
pub fn with_i64_ar_retain(value: i64) -> R<Self>
pub fn with_i64_ar_claim(value: i64) -> R<Self>
pub fn with_i64_ar(value: i64) -> Rar<Self>
pub fn with_isize(value: isize) -> R<Self>
pub fn with_u64(value: u64) -> R<Self>
pub fn with_f32(value: f32) -> R<Self>
pub fn with_f64(value: f64) -> R<Self>
pub fn with_bool(value: bool) -> R<Self>
pub fn with_integer(value: Integer) -> R<Self>
pub fn with_uinteger(value: UInteger) -> R<Self>
pub fn as_i8(&self) -> i8
pub fn as_u8(&self) -> u8
pub fn as_i16(&self) -> i16
pub fn as_u16(&self) -> u16
pub fn as_i32(&self) -> i32
pub fn as_u32(&self) -> u32
pub fn as_i64(&self) -> i64
pub fn as_isize(&self) -> isize
pub fn as_u64(&self) -> u64
pub fn as_usize(&self) -> usize
pub fn as_f32(&self) -> f32
pub fn as_f64(&self) -> f64
pub fn as_integer(&self) -> Integer
pub fn as_uinteger(&self) -> UInteger
pub fn string_ar(&self) -> Rar<String>
pub fn string(&self) -> R<String>
pub fn eq_to_number(&self, number: &Number) -> bool
pub fn as_cf(&self) -> &Number
pub fn hash(&self) -> UInteger
Methods from Deref<Target = Value>§
pub fn cm_video_dimensions_value(&self) -> VideoDimensions
pub fn cm_time_value(&self) -> Time
pub fn cm_time_range_value(&self) -> TimeRange
pub fn cm_time_mapping_value(&self) -> TimeMapping
pub fn retained(&self) -> R<Self>
pub fn eq_to_value(&self, other: &Self) -> bool
Methods from Deref<Target = Id>§
pub unsafe fn value_for_key_throws_ar(&self, key: &String) -> Option<Rar<Self>>
pub unsafe fn value_for_key_throws(&self, key: &String) -> Option<R<Self>>
pub fn value_for_key<'ear>( &self, key: &String, ) -> ExResult<'ear, Option<R<Self>>>
pub unsafe fn set_value_for_key_throws( &mut self, val: Option<&Self>, key: &String, )
pub fn set_value_for_key<'ear>( &mut self, val: Option<&Self>, key: &String, ) -> ExResult<'ear>
pub unsafe fn value_for_key_path_throws_ar( &self, key_path: &String, ) -> Option<Rar<Self>>
pub unsafe fn value_for_key_path_throws( &self, key_path: &String, ) -> Option<R<Self>>
pub fn value_for_key_path<'ear>( &self, key_path: &String, ) -> ExResult<'ear, Option<R<Self>>>
pub unsafe fn set_value_for_key_path_throws( &mut self, val: Option<&Self>, key_path: &String, )
pub fn set_value_for_key_path<'ear>( &mut self, val: Option<&Self>, key_path: &String, ) -> ExResult<'ear>
pub fn as_type_ref(&self) -> &Type
pub fn as_id_ref(&self) -> &Self
pub fn is_equal(&self, other: &Self) -> bool
pub fn hash(&self) -> UInteger
pub fn as_ptr(&self) -> *const Self
Trait Implementations§
impl Eq for Number
Source§impl Obj for Number
impl Obj for Number
unsafe fn retain(id: &Self) -> R<Self>
unsafe fn release(id: &mut Self)
fn desc_ar(&self) -> Rar<String>
fn desc(&self) -> R<String>
fn debug_desc_ar(&self) -> Rar<String>
fn debug_desc(&self) -> R<String>
fn responds_to_sel(&self, sel: &Sel) -> bool
fn class(&self) -> &Class<Self>
fn is_kind_of_class<T: Obj>(&self, cls: &Class<T>) -> bool
fn try_cast<T: Obj>(&self, cls: &Class<T>) -> Option<&T>
fn try_cast_mut<T: Obj>(&mut self, cls: &Class<T>) -> Option<&mut T>
fn is_member_of_class<T: Obj>(&self, cls: &Class<T>) -> bool
fn is_tagged_ptr(&self) -> bool
fn as_id_ref(&self) -> &Id
impl StructuralPartialEq for Number
Auto Trait Implementations§
impl !Sync for Number
impl Freeze for Number
impl RefUnwindSafe for Number
impl Send for Number
impl Unpin for Number
impl UnsafeUnpin for Number
impl UnwindSafe for Number
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