pub trait Input:
Sized
+ Clone
+ Debug
+ Default
+ Deref<Target = str> {
// Required method
fn split_at(self, mid: usize) -> (Self, Self);
// Provided methods
fn before(self, index: usize) -> Self { ... }
fn after(self, index: usize) -> Self { ... }
}Expand description
Required Methods§
Sourcefn split_at(self, mid: usize) -> (Self, Self)
fn split_at(self, mid: usize) -> (Self, Self)
A generalisation of str::split_at
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.