pub trait SequenceHint: Sized + Sealed {
// Required method
fn get(self) -> Option<usize>;
// Provided methods
fn require<C>(self, cx: C) -> Result<usize, C::Error>
where C: Context { ... }
fn size_hint(self) -> SizeHint { ... }
}Expand description
A size hint passed in when encoding or decoding a sequence.
Required Methods§
Provided Methods§
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.