pub trait StrRead {
// Required method
fn peek_str(&self) -> Option<&str>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
The base trait that both RealStrRead and StringRead need to implement.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".