pub trait WithBorrow<'a, O> {
// Required methods
fn with_borrow<F, R>(&'a self, f: F) -> R
where F: FnOnce(&O) -> R;
fn with_borrow_mut<F, R>(&'a self, f: F) -> R
where F: FnOnce(&mut O) -> R;
}
Required Methods§
fn with_borrow<F, R>(&'a self, f: F) -> R
fn with_borrow_mut<F, R>(&'a self, f: F) -> R
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.