pub trait IOContext<T> {
// Required method
fn io_context(self, msg: impl LazyStr) -> Result<T>;
// Provided method
fn path_context(
self,
msg: impl LazyStr,
path: impl AsRef<Path>,
) -> Result<T>
where Self: Sized { ... }
}
Required Methods§
fn io_context(self, msg: impl LazyStr) -> Result<T>
Provided Methods§
fn path_context(self, msg: impl LazyStr, path: impl AsRef<Path>) -> Result<T>where
Self: Sized,
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.