CanPeekDecodeBuffer

Trait CanPeekDecodeBuffer 

Source
pub trait CanPeekDecodeBuffer<Value>: HasDecodeBufferType {
    // Required method
    fn peek_decode_buffer<'a>(
        buffer: &'a mut Self::DecodeBuffer<'_>,
    ) -> Option<&'a Value>;
}

Required Methods§

Source

fn peek_decode_buffer<'a>( buffer: &'a mut Self::DecodeBuffer<'_>, ) -> Option<&'a Value>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Encoding, Value> CanPeekDecodeBuffer<Value> for Encoding
where Encoding: HasDecodeBufferType + HasComponents, Encoding::Components: DecodeBufferPeeker<Encoding, Value>,