Skip to main content

StackSwitcherExt

Trait StackSwitcherExt 

Source
pub trait StackSwitcherExt:
    IsA<StackSwitcher>
    + Sealed
    + 'static {
    // Provided methods
    fn stack(&self) -> Option<Stack> { ... }
    fn set_stack(&self, stack: Option<&impl IsA<Stack>>) { ... }
    fn connect_stack_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all StackSwitcher methods.

§Implementors

StackSwitcher

Provided Methods§

Source

fn stack(&self) -> Option<Stack>

Retrieves the stack. See set_stack().

§Returns

the stack, or None if none has been set explicitly.

Source

fn set_stack(&self, stack: Option<&impl IsA<Stack>>)

Sets the stack to control.

§stack

a Stack

Source

fn connect_stack_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§