pub struct ScriptBufDecoder<T>(/* private fields */);Expand description
The decoder for the ScriptBuf type.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for ScriptBufDecoder<T>
impl<T: Clone> Clone for ScriptBufDecoder<T>
Source§fn clone(&self) -> ScriptBufDecoder<T>
fn clone(&self) -> ScriptBufDecoder<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ScriptBufDecoder<T>
impl<T: Debug> Debug for ScriptBufDecoder<T>
Source§impl<T> Decoder for ScriptBufDecoder<T>
impl<T> Decoder for ScriptBufDecoder<T>
Source§type Error = ScriptBufDecoderError
type Error = ScriptBufDecoderError
The error type that this decoder can produce.
Source§fn push_bytes(
&mut self,
bytes: &mut &[u8],
) -> Result<DecoderStatus, Self::Error>
fn push_bytes( &mut self, bytes: &mut &[u8], ) -> Result<DecoderStatus, Self::Error>
Pushes bytes into the decoder, consuming as much as possible. Read more
Source§fn end(self) -> Result<Self::Output, Self::Error>
fn end(self) -> Result<Self::Output, Self::Error>
Completes the decoding process and returns the final result. Read more
Source§fn read_limit(&self) -> usize
fn read_limit(&self) -> usize
Returns the maximum number of bytes this decoder can consume without over-reading. Read more
Auto Trait Implementations§
impl<T> Freeze for ScriptBufDecoder<T>
impl<T> RefUnwindSafe for ScriptBufDecoder<T>where
T: RefUnwindSafe,
impl<T> Send for ScriptBufDecoder<T>where
T: Send,
impl<T> Sync for ScriptBufDecoder<T>where
T: Sync,
impl<T> Unpin for ScriptBufDecoder<T>where
T: Unpin,
impl<T> UnsafeUnpin for ScriptBufDecoder<T>
impl<T> UnwindSafe for ScriptBufDecoder<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more