Skip to main content

Number

Struct Number 

Source
pub struct Number(/* private fields */);

Implementations§

Source§

impl Number

Source

pub fn retained(&self) -> R<Self>

Source§

impl Number

Source

pub fn cls() -> &'static Class<Self>

Source

pub fn cls_ptr() -> *const c_void

Source

pub fn alloc() -> A<Self>

Source

pub fn with_i8(value: i8) -> R<Self>

Source

pub fn with_u8(value: u8) -> R<Self>

Source

pub fn tagged_i8(value: i8) -> &'static Self

Source

pub fn tagged_u8(value: u8) -> &'static Self

Source

pub fn with_i16(value: i16) -> R<Self>

Source

pub fn with_u16(value: u16) -> R<Self>

Source

pub fn tagged_i16(value: i16) -> &'static Self

Source

pub fn tagged_u16(value: u16) -> &'static Self

Source

pub fn with_i32(value: i32) -> R<Self>

Source

pub fn with_u32(value: u32) -> R<Self>

Source

pub fn tagged_i32(value: i32) -> &'static Self

Source

pub fn tagged_u32(value: u32) -> &'static Self

Source

pub fn with_i64(value: i64) -> R<Self>

Source

pub fn with_i64_ar_retain(value: i64) -> R<Self>

Source

pub fn with_i64_ar_claim(value: i64) -> R<Self>

Source

pub fn with_i64_ar(value: i64) -> Rar<Self>

Source

pub fn with_isize(value: isize) -> R<Self>

Source

pub fn with_u64(value: u64) -> R<Self>

Source

pub fn with_f32(value: f32) -> R<Self>

Source

pub fn with_f64(value: f64) -> R<Self>

Source

pub fn with_bool(value: bool) -> R<Self>

Source

pub fn with_integer(value: Integer) -> R<Self>

Source

pub fn with_uinteger(value: UInteger) -> R<Self>

Source

pub fn as_i8(&self) -> i8

Source

pub fn as_u8(&self) -> u8

Source

pub fn as_i16(&self) -> i16

Source

pub fn as_u16(&self) -> u16

Source

pub fn as_i32(&self) -> i32

Source

pub fn as_u32(&self) -> u32

Source

pub fn as_i64(&self) -> i64

Source

pub fn as_isize(&self) -> isize

Source

pub fn as_u64(&self) -> u64

Source

pub fn as_usize(&self) -> usize

Source

pub fn as_f32(&self) -> f32

Source

pub fn as_f64(&self) -> f64

Source

pub fn as_integer(&self) -> Integer

Source

pub fn as_uinteger(&self) -> UInteger

Source

pub fn string_ar(&self) -> Rar<String>

Source

pub fn string(&self) -> R<String>

Source

pub fn eq_to_number(&self, number: &Number) -> bool

Source

pub fn as_cf(&self) -> &Number

Source

pub fn hash(&self) -> UInteger

Methods from Deref<Target = Value>§

Source

pub fn cm_video_dimensions_value(&self) -> VideoDimensions

Source

pub fn cm_time_value(&self) -> Time

Source

pub fn cm_time_range_value(&self) -> TimeRange

Source

pub fn cm_time_mapping_value(&self) -> TimeMapping

Source

pub fn retained(&self) -> R<Self>

Source

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

Methods from Deref<Target = Id>§

Source

pub unsafe fn value_for_key_throws_ar(&self, key: &String) -> Option<Rar<Self>>

Source

pub unsafe fn value_for_key_throws(&self, key: &String) -> Option<R<Self>>

Source

pub fn value_for_key<'ear>( &self, key: &String, ) -> ExResult<'ear, Option<R<Self>>>

Source

pub unsafe fn set_value_for_key_throws( &mut self, val: Option<&Self>, key: &String, )

Source

pub fn set_value_for_key<'ear>( &mut self, val: Option<&Self>, key: &String, ) -> ExResult<'ear>

Source

pub unsafe fn value_for_key_path_throws_ar( &self, key_path: &String, ) -> Option<Rar<Self>>

Source

pub unsafe fn value_for_key_path_throws( &self, key_path: &String, ) -> Option<R<Self>>

Source

pub fn value_for_key_path<'ear>( &self, key_path: &String, ) -> ExResult<'ear, Option<R<Self>>>

Source

pub unsafe fn set_value_for_key_path_throws( &mut self, val: Option<&Self>, key_path: &String, )

Source

pub fn set_value_for_key_path<'ear>( &mut self, val: Option<&Self>, key_path: &String, ) -> ExResult<'ear>

Source

pub fn as_type_ref(&self) -> &Type

Source

pub fn as_id_ref(&self) -> &Self

Source

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

Source

pub fn hash(&self) -> UInteger

Source

pub fn as_ptr(&self) -> *const Self

Trait Implementations§

Source§

impl AsRef<Id> for Number

Source§

fn as_ref(&self) -> &Id

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Number> for Format

Source§

fn as_ref(&self) -> &'static Number

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Number> for Number

Source§

fn as_ref(&self) -> &Number

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Number> for u8

Source§

fn as_ref(&self) -> &Number

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Number> for i8

Source§

fn as_ref(&self) -> &Number

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Number> for u16

Source§

fn as_ref(&self) -> &Number

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Number> for i16

Source§

fn as_ref(&self) -> &Number

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Number> for u32

Source§

fn as_ref(&self) -> &Number

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Number> for i32

Source§

fn as_ref(&self) -> &Number

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Debug for Number

Source§

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

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

impl Deref for Number

Source§

type Target = Value

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for Number

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Eq for Number

Source§

impl Hash for Number

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 Obj for Number

Source§

unsafe fn retain(id: &Self) -> R<Self>

Source§

unsafe fn release(id: &mut Self)

Source§

fn desc_ar(&self) -> Rar<String>

Source§

fn desc(&self) -> R<String>

Source§

fn debug_desc_ar(&self) -> Rar<String>

Source§

fn debug_desc(&self) -> R<String>

Source§

fn responds_to_sel(&self, sel: &Sel) -> bool

Source§

fn class(&self) -> &Class<Self>

Source§

fn is_kind_of_class<T: Obj>(&self, cls: &Class<T>) -> bool

Source§

fn try_cast<T: Obj>(&self, cls: &Class<T>) -> Option<&T>

Source§

fn try_cast_mut<T: Obj>(&mut self, cls: &Class<T>) -> Option<&mut T>

Source§

fn is_member_of_class<T: Obj>(&self, cls: &Class<T>) -> bool

Source§

fn is_tagged_ptr(&self) -> bool

Source§

fn as_id_ref(&self) -> &Id

Source§

impl PartialEq for Number

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Retained<Number>> for Number

Source§

fn eq(&self, other: &R<Number>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Number

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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> Release for T
where T: Obj,

Source§

unsafe fn release(&mut self)

Source§

impl<T> Retain for T
where T: Obj,

Source§

fn retained(&self) -> Retained<T>

Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.