[][src]Struct phpser::StringReader

pub struct StringReader<R: Read> { /* fields omitted */ }

Reads an io::Read into a Value<String>.

Implementations

impl<R: Read> StringReader<R>[src]

pub fn new(read: R, limit: usize) -> Self[src]

Creates a new StringReader.

The read does not need to be buffered; the implementation would automatically buffer it.

The limit value is used to avoid allocating arbitrary large chunks of memory as requested by the serialization.

Trait Implementations

impl<'de, R: Read> Source<'de, String> for StringReader<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for StringReader<R> where
    R: RefUnwindSafe

impl<R> Send for StringReader<R> where
    R: Send

impl<R> Sync for StringReader<R> where
    R: Sync

impl<R> Unpin for StringReader<R> where
    R: Unpin

impl<R> UnwindSafe for StringReader<R> where
    R: 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, 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.