pub trait SingleWidget<T: DynamicWidget>:
DynamicWidget
+ Deref
+ DerefMut {
type Borrowed<'a>: Deref<Target = T>
where T: 'a,
Self: 'a;
type BorrowedMut<'a>: DerefMut<Target = T>
where T: 'a,
Self: 'a;
// Required methods
fn child(&self) -> Self::Borrowed<'_>;
fn child_mut(&mut self) -> Self::BorrowedMut<'_>;
}Required Associated Types§
type Borrowed<'a>: Deref<Target = T> where T: 'a, Self: 'a
type BorrowedMut<'a>: DerefMut<Target = T> where T: 'a, Self: 'a
Required 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.