pub trait SourceRead<K: InputKind + ?Sized>: Sized {
type Output: Clone;
// Required method
fn load(&self, data: &[<K::Array as ArrayKind>::Elem]) -> Self::Output;
}
Expand description
A trait for Source
readers, which are used via the SourceReader
type returned from Source::reader
. Users can implement this trait
on their own type to customize reading, or use XYZ
and ST
for the common cases.
Required Associated Types§
Required 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.