[][src]Struct core_foundation::number::CFNumber

pub struct CFNumber(_);

An immutable numeric value.

Methods

impl CFNumber[src]

pub fn to_i32(&self) -> Option<i32>[src]

pub fn to_i64(&self) -> Option<i64>[src]

pub fn to_f32(&self) -> Option<f32>[src]

pub fn to_f64(&self) -> Option<f64>[src]

Trait Implementations

impl ConcreteCFType for CFNumber[src]

impl TCFType for CFNumber[src]

type Ref = CFNumberRef

The reference type wrapped inside this type.

impl<'a> ToVoid<CFNumber> for &'a CFNumber[src]

impl ToVoid<CFNumber> for CFNumber[src]

impl ToVoid<CFNumber> for CFNumberRef[src]

impl CFPropertyListSubClass for CFNumber[src]

impl Drop for CFNumber[src]

impl From<i32> for CFNumber[src]

impl From<i64> for CFNumber[src]

impl From<f32> for CFNumber[src]

impl From<f64> for CFNumber[src]

impl Clone for CFNumber[src]

impl Eq for CFNumber[src]

impl Ord for CFNumber[src]

impl PartialEq<CFNumber> for CFNumber[src]

impl PartialOrd<CFNumber> for CFNumber[src]

impl Debug for CFNumber[src]

Auto Trait Implementations

impl !Send for CFNumber

impl !Sync for CFNumber

impl Unpin for CFNumber

impl UnwindSafe for CFNumber

impl RefUnwindSafe for CFNumber

Blanket Implementations

impl<T> FromMutVoid for T where
    T: TCFType
[src]

impl<T> FromVoid for T where
    T: TCFType
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]