Skip to main content

Slot

Enum Slot 

Source
pub enum Slot<M = ()> {
    Text(Text),
    Node(Node<M>),
}
Expand description

What a slot prop (card head/end, section head, overlay end/foot) holds: text, or a node drawn there.

Variants§

§

Text(Text)

Text or spans (only head takes text).

§

Node(Node<M>)

A node: added as the child keyed by the slot’s name, the prop sent as its id (<parent>.end).

Trait Implementations§

Source§

impl<M> From<&String> for Slot<M>

Source§

fn from(t: &String) -> Self

Converts to this type from the input type.
Source§

impl<M> From<&str> for Slot<M>

Source§

fn from(t: &str) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Agent<M>> for Slot<M>

Source§

fn from(n: Agent<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Ansi<M>> for Slot<M>

Source§

fn from(n: Ansi<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Attachment<M>> for Slot<M>

Source§

fn from(n: Attachment<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Avatar<M>> for Slot<M>

Source§

fn from(n: Avatar<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Avatars<M>> for Slot<M>

Source§

fn from(n: Avatars<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Badge<M>> for Slot<M>

Source§

fn from(n: Badge<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Breadcrumb<M>> for Slot<M>

Source§

fn from(n: Breadcrumb<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Button<M>> for Slot<M>

Source§

fn from(n: Button<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Buttons<M>> for Slot<M>

Source§

fn from(n: Buttons<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Calendar<M>> for Slot<M>

Source§

fn from(n: Calendar<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Card<M>> for Slot<M>

Source§

fn from(n: Card<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Carousel<M>> for Slot<M>

Source§

fn from(n: Carousel<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Chart<M>> for Slot<M>

Source§

fn from(n: Chart<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Checklist<M>> for Slot<M>

Source§

fn from(n: Checklist<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Code<M>> for Slot<M>

Source§

fn from(n: Code<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Col<M>> for Slot<M>

Source§

fn from(n: Col<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Date<M>> for Slot<M>

Source§

fn from(n: Date<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Diff<M>> for Slot<M>

Source§

fn from(n: Diff<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Editor<M>> for Slot<M>

Source§

fn from(n: Editor<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Effort<M>> for Slot<M>

Source§

fn from(n: Effort<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Elapsed<M>> for Slot<M>

Source§

fn from(n: Elapsed<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Empty<M>> for Slot<M>

Source§

fn from(n: Empty<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Field<M>> for Slot<M>

Source§

fn from(n: Field<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<IconNode<M>> for Slot<M>

Source§

fn from(n: IconNode<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Image<M>> for Slot<M>

Source§

fn from(n: Image<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Input<M>> for Slot<M>

Source§

fn from(n: Input<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Item<M>> for Slot<M>

Source§

fn from(n: Item<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Json<M>> for Slot<M>

Source§

fn from(n: Json<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Kbd<M>> for Slot<M>

Source§

fn from(n: Kbd<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Kv<M>> for Slot<M>

Source§

fn from(n: Kv<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<List<M>> for Slot<M>

Source§

fn from(n: List<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Math<M>> for Slot<M>

Source§

fn from(n: Math<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Md<M>> for Slot<M>

Source§

fn from(n: Md<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Media<M>> for Slot<M>

Source§

fn from(n: Media<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Menu<M>> for Slot<M>

Source§

fn from(n: Menu<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Menubar<M>> for Slot<M>

Source§

fn from(n: Menubar<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Message<M>> for Slot<M>

Source§

fn from(n: Message<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Meter<M>> for Slot<M>

Source§

fn from(n: Meter<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Nav<M>> for Slot<M>

Source§

fn from(n: Nav<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Node<M>> for Slot<M>

Source§

fn from(n: Node<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Otp<M>> for Slot<M>

Source§

fn from(n: Otp<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Overlay<M>> for Slot<M>

Source§

fn from(n: Overlay<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Pager<M>> for Slot<M>

Source§

fn from(n: Pager<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Picker<M>> for Slot<M>

Source§

fn from(n: Picker<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Prefs<M>> for Slot<M>

Source§

fn from(n: Prefs<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Progress<M>> for Slot<M>

Source§

fn from(n: Progress<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Questions<M>> for Slot<M>

Source§

fn from(n: Questions<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Rate<M>> for Slot<M>

Source§

fn from(n: Rate<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Row<M>> for Slot<M>

Source§

fn from(n: Row<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Rows<M>> for Slot<M>

Source§

fn from(n: Rows<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Rule<M>> for Slot<M>

Source§

fn from(n: Rule<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Scroll<M>> for Slot<M>

Source§

fn from(n: Scroll<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Section<M>> for Slot<M>

Source§

fn from(n: Section<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Seg<M>> for Slot<M>

Source§

fn from(n: Seg<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Select<M>> for Slot<M>

Source§

fn from(n: Select<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Shimmer<M>> for Slot<M>

Source§

fn from(n: Shimmer<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Skeleton<M>> for Slot<M>

Source§

fn from(n: Skeleton<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Slider<M>> for Slot<M>

Source§

fn from(n: Slider<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Spacer<M>> for Slot<M>

Source§

fn from(n: Spacer<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Span> for Slot<M>

Source§

fn from(s: Span) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Spinner<M>> for Slot<M>

Source§

fn from(n: Spinner<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Split<M>> for Slot<M>

Source§

fn from(n: Split<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Stacktrace<M>> for Slot<M>

Source§

fn from(n: Stacktrace<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Stats<M>> for Slot<M>

Source§

fn from(n: Stats<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<StatusBar<M>> for Slot<M>

Source§

fn from(n: StatusBar<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<String> for Slot<M>

Source§

fn from(t: String) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Suggestions<M>> for Slot<M>

Source§

fn from(n: Suggestions<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Switch<M>> for Slot<M>

Source§

fn from(n: Switch<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Table<M>> for Slot<M>

Source§

fn from(n: Table<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Tabs<M>> for Slot<M>

Source§

fn from(n: Tabs<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Text> for Slot<M>

Source§

fn from(t: Text) -> Self

Converts to this type from the input type.
Source§

impl<M> From<TextNode<M>> for Slot<M>

Source§

fn from(n: TextNode<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Toast<M>> for Slot<M>

Source§

fn from(n: Toast<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Tool<M>> for Slot<M>

Source§

fn from(n: Tool<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Trace<M>> for Slot<M>

Source§

fn from(n: Trace<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Tree<M>> for Slot<M>

Source§

fn from(n: Tree<M>) -> Self

Converts to this type from the input type.
Source§

impl<M> From<Vec<Span>> for Slot<M>

Source§

fn from(s: Vec<Span>) -> Self

Converts to this type from the input type.
Source§

impl<M, const N: usize> From<[Span; N]> for Slot<M>

Source§

fn from(s: [Span; N]) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<M = ()> !RefUnwindSafe for Slot<M>

§

impl<M = ()> !UnwindSafe for Slot<M>

§

impl<M> Freeze for Slot<M>
where Node<M>: Freeze,

§

impl<M> Send for Slot<M>
where Node<M>: Send,

§

impl<M> Sync for Slot<M>
where Node<M>: Sync,

§

impl<M> Unpin for Slot<M>
where Node<M>: Unpin,

§

impl<M> UnsafeUnpin for Slot<M>
where Node<M>: UnsafeUnpin,

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more