[−][src]Enum phpser::Value
A serialized PHP value.
Variants
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.
Corresponds to the string
type of PHP.
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
Auto Trait Implementations
impl<S> RefUnwindSafe for Value<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Value<S> where
S: Send,
S: Send,
impl<S> Sync for Value<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Value<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Value<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,