Skip to main content

Slot

Struct Slot 

Source
pub struct Slot;
Expand description

A node that paints nothing and leaves its children to a binding.

show mounts its child under a slot, and for_each keeps one child per key of a list under one.

Trait Implementations§

Source§

impl Widget for Slot

Source§

fn paint(&self, _cx: &PaintCx<'_>, _out: &mut Vec<PaintOp>)

Appends this widget’s paint operations, in paint coordinates. Read more
Source§

fn measure(&mut self, _input: MeasureInput) -> Option<Size>

Returns the size of this widget’s content, or None to let the layout engine size the node from its style. Read more
Source§

fn ime_area(&self) -> Option<Rect>

Returns the rectangle the input method should anchor to while this widget holds the keyboard focus, in the paint coordinates of Widget::paint. Read more
Source§

fn semantics(&self) -> Option<Semantics>

Returns the accessibility description that places this widget in the projection, or None to leave it out. Read more

Auto Trait Implementations§

§

impl Forget for Slot

§

impl Freeze for Slot

§

impl Move for Slot

§

impl RefUnwindSafe for Slot

§

impl Send for Slot

§

impl Sync for Slot

§

impl Unpin for Slot

§

impl UnsafeUnpin for Slot

§

impl UnwindSafe for Slot

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.