pub trait ScanFromBinary<'a>: Sized {
// Required method
fn scan_from_binary<I: ScanInput<'a>>(
s: I,
) -> Result<(Self, usize), ScanError>;
}
Expand description
This trait defines scanning a type from a binary representation.
This should be implemented to match implementations of std::fmt::Binary
.
Required Methods§
Sourcefn scan_from_binary<I: ScanInput<'a>>(s: I) -> Result<(Self, usize), ScanError>
fn scan_from_binary<I: ScanInput<'a>>(s: I) -> Result<(Self, usize), ScanError>
Perform a scan on the given input.
See: ScanFromStr::scan_from
.
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.