pub trait Context {
type Scalar: Scalar;
// Provided method
fn duplicate_key(
&mut self,
_scope: Scope,
_key: u64,
_location: &'static Location<'static>,
) { ... }
}Expand description
resources shared by every widget, layout and painter in a frame
Required Associated Types§
Provided Methods§
Sourcefn duplicate_key(
&mut self,
_scope: Scope,
_key: u64,
_location: &'static Location<'static>,
)
fn duplicate_key( &mut self, _scope: Scope, _key: u64, _location: &'static Location<'static>, )
the node built at location repeats key in scope and takes a fresh id instead
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".