pub unsafe trait Spans:
Copy
+ Send
+ Sync
+ 'static {
const EMPTY: Self;
// Required methods
unsafe fn span(self, index: usize) -> (usize, usize);
unsafe fn advance(self, count: usize) -> (usize, Self);
}Expand description
Where the values of a Buf are in its storage: the range of octets of each of them,
either computed, see PackedSpans, or given by a table, see TableSpans.
§Safety
The ranges must be those the buffer was built with.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".