[−][src]Struct phpser::ByteReader
Reads an io::Read
into a Value<Vec<u8>>
.
Implementations
impl<R: Read> ByteReader<R>
[src]
pub fn new(read: R, limit: usize) -> Self
[src]
Creates a new ByteReader
.
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
Auto Trait Implementations
impl<R> RefUnwindSafe for ByteReader<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for ByteReader<R> where
R: Send,
R: Send,
impl<R> Sync for ByteReader<R> where
R: Sync,
R: Sync,
impl<R> Unpin for ByteReader<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for ByteReader<R> where
R: UnwindSafe,
R: 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, 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>,