Skip to main content

Context

Trait Context 

Source
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§

Source

type Scalar: Scalar

coordinate type for all frame geometry

Provided Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl Context for ()

Implementors§