Trait Pushable

Source
pub trait Pushable {
    // Required methods
    unsafe fn push(&self);
    unsafe fn pop(&self);
}
Expand description

Any value that can be applied with a push function and unapplied with a pop function.

Apply to the current frame using Ui::with_push. If you want to apply several values at the same time use a tuple or an array. Only tuples up to 4 values are supported, but you can apply arbitrarily many pushables by creating tuples of tuples: (A, B, C, (D, E, F, (G, H, I, J))).

Required Methods§

Source

unsafe fn push(&self)

Source

unsafe fn pop(&self)

Implementations on Foreign Types§

Source§

impl Pushable for &[&dyn Pushable]

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl Pushable for (ItemFlags, bool)

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl Pushable for ()

A Pushable that does nothing.

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl Pushable for [Style]

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl Pushable for [StyleColor]

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl Pushable for [StyleColorF]

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl<A: Pushable> Pushable for (A,)

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl<A: Pushable, B: Pushable> Pushable for (A, B)

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl<A: Pushable, B: Pushable, C: Pushable> Pushable for (A, B, C)

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl<A: Pushable, B: Pushable, C: Pushable, D: Pushable> Pushable for (A, B, C, D)

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl<T: Pushable> Pushable for Option<T>

A Pushable that is applied optionally.

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl<const N: usize> Pushable for [Style; N]

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl<const N: usize> Pushable for [StyleColor; N]

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Source§

impl<const N: usize> Pushable for [StyleColorF; N]

Source§

unsafe fn push(&self)

Source§

unsafe fn pop(&self)

Implementors§