[][src]Struct creator_plist::Integer

pub struct Integer { /* fields omitted */ }

An integer that can be represented by either an i64 or a u64.

Implementations

impl Integer[src]

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

Returns the value as an i64 if it can be represented by that type.

pub fn as_unsigned(self) -> Option<u64>[src]

Returns the value as a u64 if it can be represented by that type.

Trait Implementations

impl Clone for Integer[src]

impl Copy for Integer[src]

impl Debug for Integer[src]

impl<'de> Deserialize<'de> for Integer[src]

impl Display for Integer[src]

impl Eq for Integer[src]

impl From<i16> for Integer[src]

impl From<i32> for Integer[src]

impl From<i64> for Integer[src]

impl From<i8> for Integer[src]

impl From<u16> for Integer[src]

impl From<u32> for Integer[src]

impl From<u64> for Integer[src]

impl From<u8> for Integer[src]

impl Hash for Integer[src]

impl Ord for Integer[src]

impl PartialEq<Integer> for Integer[src]

impl PartialOrd<Integer> for Integer[src]

impl Serialize for Integer[src]

impl StructuralEq for Integer[src]

impl StructuralPartialEq for Integer[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.