[][src]Enum phpser::Value

pub enum Value<S> {
    Null,
    Bool(bool),
    Int(i64),
    Float(f64),
    String(S),
    Array(Vec<(ArrayKey<S>, Value<S>)>),
    Object(Object<S>),
    Serializable(Serializable<S>),
    Reference(Ref),
}

A serialized PHP value.

Variants

Null

Corresponds to the null type of PHP.

Bool(bool)

Corresponds to the bool type of PHP.

Int(i64)

Corresponds to the int type of PHP.

Float(f64)

Corresponds to the float type of PHP.

String(S)

Corresponds to the string type of PHP.

Array(Vec<(ArrayKey<S>, Value<S>)>)

Corresponds to the array type of PHP.

Object(Object<S>)

Corresponds to non-Serializable objects in PHP.

Serializable(Serializable<S>)

Corresponds to Serializable objects in PHP.

Reference(Ref)

Corresponds to an internally-referenced value.

Implementations

impl<'de, S: Str<'de>> Value<S>[src]

pub fn parse(source: S) -> IoResult<Self>[src]

Parses a string or byte array

pub fn from_source(source: impl Source<'de, S>) -> IoResult<Self>[src]

Parses a stream

Trait Implementations

impl<S: Clone> Clone for Value<S>[src]

impl<S: Debug> Debug for Value<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Value<S> where
    S: RefUnwindSafe

impl<S> Send for Value<S> where
    S: Send

impl<S> Sync for Value<S> where
    S: Sync

impl<S> Unpin for Value<S> where
    S: Unpin

impl<S> UnwindSafe for Value<S> where
    S: UnwindSafe

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> 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, 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.