Skip to main content

UiBuilder

Struct UiBuilder 

Source
pub struct UiBuilder<T> { /* private fields */ }
Expand description

The main fluent authoring surface: value.ui().px_2().w_full().into_element(cx).

Implementations§

Source§

impl<T> UiBuilder<T>

Source

pub fn new(inner: T) -> Self

Source

pub fn semantics(self, decoration: SemanticsDecoration) -> Self

Source

pub fn test_id(self, test_id: impl Into<Arc<str>>) -> Self

Source

pub fn a11y_role(self, role: SemanticsRole) -> Self

Source

pub fn role(self, role: SemanticsRole) -> Self

Source

pub fn a11y_label(self, label: impl Into<Arc<str>>) -> Self

Source

pub fn key_context(self, key_context: impl Into<Arc<str>>) -> Self

Source

pub fn style(self, style: ChromeRefinement) -> Self

Source

pub fn layout(self, layout: LayoutRefinement) -> Self

Source

pub fn style_with( self, f: impl FnOnce(ChromeRefinement) -> ChromeRefinement, ) -> Self

Source

pub fn layout_with( self, f: impl FnOnce(LayoutRefinement) -> LayoutRefinement, ) -> Self

Source§

impl UiBuilder<TextBox>

Source

pub fn selectable(self, selectable: bool) -> Self

Enables or disables drag-to-select + edit.copy for this text element.

Notes:

  • Keep this off by default for most UI labels to avoid gesture conflicts with pressable rows/buttons. Prefer a dedicated copy button in interactive surfaces.
Source

pub fn selectable_on(self) -> Self

Convenience helper for selectable(true).

Source

pub fn selectable_off(self) -> Self

Convenience helper for selectable(false).

Source

pub fn text_xs(self) -> Self

Source

pub fn text_sm(self) -> Self

Source

pub fn text_base(self) -> Self

Source

pub fn text_prose(self) -> Self

Source

pub fn font_weight(self, weight: FontWeight) -> Self

Source

pub fn font(self, font: FontId) -> Self

Source

pub fn font_feature(self, tag: impl Into<String>, value: u32) -> Self

Source

pub fn font_axis(self, tag: impl Into<String>, value: f32) -> Self

Source

pub fn tabular_nums(self) -> Self

Enables OpenType tabular numbers (font-variant-numeric: tabular-nums).

Source

pub fn proportional_nums(self) -> Self

Enables OpenType proportional numbers (font-variant-numeric: proportional-nums).

Source

pub fn lining_nums(self) -> Self

Enables OpenType lining numbers (font-variant-numeric: lining-nums).

Source

pub fn oldstyle_nums(self) -> Self

Enables OpenType oldstyle numbers (font-variant-numeric: oldstyle-nums).

Source

pub fn slashed_zero(self) -> Self

Enables OpenType slashed zero (font-variant-numeric: slashed-zero).

Source

pub fn ordinal(self) -> Self

Enables OpenType ordinal forms (font-variant-numeric: ordinal).

Source

pub fn diagonal_fractions(self) -> Self

Enables OpenType diagonal fractions (font-variant-numeric: diagonal-fractions).

Source

pub fn stacked_fractions(self) -> Self

Enables OpenType stacked fractions (font-variant-numeric: stacked-fractions).

Source

pub fn font_ui(self) -> Self

Source

pub fn font_monospace(self) -> Self

Source

pub fn font_normal(self) -> Self

Source

pub fn font_medium(self) -> Self

Source

pub fn font_semibold(self) -> Self

Source

pub fn font_bold(self) -> Self

Source

pub fn text_color(self, color: ColorRef) -> Self

Source

pub fn text_size_px(self, size: Px) -> Self

Source

pub fn line_height_px(self, height: Px) -> Self

Source

pub fn line_height_em(self, line_height_em: f32) -> Self

Source

pub fn line_height_preset(self, preset: TextLineHeightPreset) -> Self

Source

pub fn line_height_policy(self, policy: TextLineHeightPolicy) -> Self

Source

pub fn control(self) -> Self

Source

pub fn content(self) -> Self

Source

pub fn fixed_line_box_px(self, height: Px) -> Self

Configures a fixed line box by setting both line_height_px(height) and h_px(height).

This is a pragmatic escape hatch for fixed-height controls (tabs, pills, buttons) where centering by glyph bounds can read as slightly bottom-heavy. A fixed line box allows the text widget to apply CSS/GPUI-like “half-leading” baseline placement.

Source

pub fn letter_spacing_em(self, letter_spacing_em: f32) -> Self

Source

pub fn wrap(self, wrap: TextWrap) -> Self

Source

pub fn overflow(self, overflow: TextOverflow) -> Self

Source

pub fn ink_overflow(self, ink_overflow: TextInkOverflow) -> Self

Source

pub fn auto_pad_ink_overflow(self) -> Self

Source

pub fn text_align(self, align: TextAlign) -> Self

Source

pub fn nowrap(self) -> Self

Source

pub fn truncate(self) -> Self

Source

pub fn break_words(self) -> Self

Sets TextWrap::WordBreak and clips overflow.

This matches Tailwind’s break-words intent (prevent horizontal overflow by allowing breaks inside long tokens such as URLs, paths, and identifiers).

Source

pub fn text_balance(self) -> Self

Enables balanced line breaking (Tailwind text-balance).

Source

pub fn line_box_in_bounds(self) -> Self

Opt into “bounds-as-line-box” baseline placement for fixed-height controls.

This is intended for single-line labels that should look vertically centered inside a container whose height is larger than the natural line height.

Source§

impl UiBuilder<RawTextBox>

Source

pub fn text_color(self, color: ColorRef) -> Self

Source

pub fn wrap(self, wrap: TextWrap) -> Self

Source

pub fn overflow(self, overflow: TextOverflow) -> Self

Source

pub fn ink_overflow(self, ink_overflow: TextInkOverflow) -> Self

Source

pub fn auto_pad_ink_overflow(self) -> Self

Source

pub fn text_align(self, align: TextAlign) -> Self

Source

pub fn nowrap(self) -> Self

Source

pub fn truncate(self) -> Self

Source

pub fn break_words(self) -> Self

Sets TextWrap::WordBreak and clips overflow.

This matches Tailwind’s break-words intent (prevent horizontal overflow by allowing breaks inside long tokens such as URLs, paths, and identifiers).

Source

pub fn text_balance(self) -> Self

Enables balanced line breaking (Tailwind text-balance).

Source§

impl UiBuilder<RichTextBox>

Source

pub fn text_style(self, style: TextStyle) -> Self

Source

pub fn text_color(self, color: ColorRef) -> Self

Source

pub fn wrap(self, wrap: TextWrap) -> Self

Source

pub fn overflow(self, overflow: TextOverflow) -> Self

Source

pub fn ink_overflow(self, ink_overflow: TextInkOverflow) -> Self

Source

pub fn auto_pad_ink_overflow(self) -> Self

Source

pub fn text_align(self, align: TextAlign) -> Self

Source

pub fn nowrap(self) -> Self

Source

pub fn truncate(self) -> Self

Source

pub fn break_words(self) -> Self

Source

pub fn text_balance(self) -> Self

Source§

impl<T: UiSupportsChrome> UiBuilder<T>

Source

pub fn paddings(self, paddings: impl Into<Edges4<MetricRef>>) -> Self

Source

pub fn paddings_fraction(self, paddings: impl Into<Edges4<f32>>) -> Self

Source

pub fn paddings_percent(self, paddings: impl Into<Edges4<f32>>) -> Self

Source

pub fn padding(self, padding: impl Into<MetricRef>) -> Self

Source

pub fn padding_fraction(self, fraction: f32) -> Self

Source

pub fn padding_percent(self, percent: f32) -> Self

Source

pub fn padding_px(self, px: Px) -> Self

Source

pub fn padding_space(self, space: Space) -> Self

Source

pub fn focused_border(self) -> Self

Source

pub fn corner_radii(self, radii: impl Into<Corners4<MetricRef>>) -> Self

Source

pub fn rounded_tl(self, radius: Radius) -> Self

Source

pub fn rounded_tr(self, radius: Radius) -> Self

Source

pub fn rounded_br(self, radius: Radius) -> Self

Source

pub fn rounded_bl(self, radius: Radius) -> Self

Source

pub fn shadow_none(self) -> Self

Source

pub fn shadow_xs(self) -> Self

Source

pub fn shadow_sm(self) -> Self

Source

pub fn shadow_md(self) -> Self

Source

pub fn shadow_lg(self) -> Self

Source

pub fn shadow_xl(self) -> Self

Source

pub fn debug_border(self, color: ColorRef) -> Self

Source

pub fn debug_border_primary(self) -> Self

Source

pub fn debug_border_destructive(self) -> Self

Source

pub fn debug_border_ring(self) -> Self

Source

pub fn px(self, space: Space) -> Self

Source

pub fn py(self, space: Space) -> Self

Source

pub fn p(self, space: Space) -> Self

Source

pub fn pt(self, space: Space) -> Self

Source

pub fn pr(self, space: Space) -> Self

Source

pub fn pb(self, space: Space) -> Self

Source

pub fn pl(self, space: Space) -> Self

Source

pub fn rounded(self, radius: Radius) -> Self

Source

pub fn border_width(self, width: impl Into<MetricRef>) -> Self

Source

pub fn radius(self, radius: impl Into<MetricRef>) -> Self

Source

pub fn bg(self, color: ColorRef) -> Self

Source

pub fn border_color(self, color: ColorRef) -> Self

Source

pub fn text_color(self, color: ColorRef) -> Self

Source

pub fn px_0(self) -> Self

Source

pub fn px_1(self) -> Self

Source

pub fn px_0p5(self) -> Self

Source

pub fn px_1p5(self) -> Self

Source

pub fn px_2(self) -> Self

Source

pub fn px_2p5(self) -> Self

Source

pub fn px_3(self) -> Self

Source

pub fn px_4(self) -> Self

Source

pub fn py_0(self) -> Self

Source

pub fn py_1(self) -> Self

Source

pub fn py_0p5(self) -> Self

Source

pub fn py_1p5(self) -> Self

Source

pub fn py_2(self) -> Self

Source

pub fn py_2p5(self) -> Self

Source

pub fn py_3(self) -> Self

Source

pub fn py_4(self) -> Self

Source

pub fn p_0(self) -> Self

Source

pub fn p_1(self) -> Self

Source

pub fn p_0p5(self) -> Self

Source

pub fn p_1p5(self) -> Self

Source

pub fn p_2(self) -> Self

Source

pub fn p_2p5(self) -> Self

Source

pub fn p_3(self) -> Self

Source

pub fn p_4(self) -> Self

Source

pub fn rounded_md(self) -> Self

Source

pub fn border_1(self) -> Self

Source§

impl<T: UiSupportsLayout> UiBuilder<T>

Source

pub fn insets(self, insets: impl Into<Edges4<SignedMetricRef>>) -> Self

Source

pub fn margins(self, margins: impl Into<Edges4<MarginEdge>>) -> Self

Source

pub fn aspect_ratio(self, ratio: f32) -> Self

Source

pub fn inset(self, space: Space) -> Self

Source

pub fn inset_px(self, px: Px) -> Self

Source

pub fn top(self, space: Space) -> Self

Source

pub fn top_px(self, px: Px) -> Self

Source

pub fn top_neg(self, space: Space) -> Self

Source

pub fn right(self, space: Space) -> Self

Source

pub fn right_px(self, px: Px) -> Self

Source

pub fn right_neg(self, space: Space) -> Self

Source

pub fn bottom(self, space: Space) -> Self

Source

pub fn bottom_px(self, px: Px) -> Self

Source

pub fn bottom_neg(self, space: Space) -> Self

Source

pub fn left(self, space: Space) -> Self

Source

pub fn left_px(self, px: Px) -> Self

Source

pub fn left_neg(self, space: Space) -> Self

Source

pub fn m(self, space: Space) -> Self

Source

pub fn m_px(self, px: Px) -> Self

Source

pub fn m_neg(self, space: Space) -> Self

Source

pub fn mx(self, space: Space) -> Self

Source

pub fn mx_px(self, px: Px) -> Self

Source

pub fn mx_neg(self, space: Space) -> Self

Source

pub fn my(self, space: Space) -> Self

Source

pub fn my_px(self, px: Px) -> Self

Source

pub fn my_neg(self, space: Space) -> Self

Source

pub fn mt(self, space: Space) -> Self

Source

pub fn mt_px(self, px: Px) -> Self

Source

pub fn mt_neg(self, space: Space) -> Self

Source

pub fn mr(self, space: Space) -> Self

Source

pub fn mr_px(self, px: Px) -> Self

Source

pub fn mr_neg(self, space: Space) -> Self

Source

pub fn mb(self, space: Space) -> Self

Source

pub fn mb_px(self, px: Px) -> Self

Source

pub fn mb_neg(self, space: Space) -> Self

Source

pub fn ml(self, space: Space) -> Self

Source

pub fn ml_px(self, px: Px) -> Self

Source

pub fn ml_neg(self, space: Space) -> Self

Source

pub fn min_w(self, width: impl Into<MetricRef>) -> Self

Source

pub fn min_w_space(self, width: Space) -> Self

Source

pub fn min_h(self, height: impl Into<MetricRef>) -> Self

Source

pub fn min_h_space(self, height: Space) -> Self

Source

pub fn w(self, width: LengthRefinement) -> Self

Source

pub fn h(self, height: LengthRefinement) -> Self

Source

pub fn w_px(self, width: impl Into<MetricRef>) -> Self

Source

pub fn w_space(self, width: Space) -> Self

Source

pub fn h_px(self, height: impl Into<MetricRef>) -> Self

Source

pub fn h_space(self, height: Space) -> Self

Source

pub fn max_w(self, width: impl Into<MetricRef>) -> Self

Source

pub fn max_w_space(self, width: Space) -> Self

Source

pub fn max_h(self, height: impl Into<MetricRef>) -> Self

Source

pub fn max_h_space(self, height: Space) -> Self

Source

pub fn basis(self, basis: LengthRefinement) -> Self

Source

pub fn basis_px(self, basis: impl Into<MetricRef>) -> Self

Source

pub fn flex_grow(self, grow: f32) -> Self

Source

pub fn flex_shrink(self, shrink: f32) -> Self

Source

pub fn align_self(self, align: CrossAlign) -> Self

Source

pub fn justify_self(self, align: CrossAlign) -> Self

Source

pub fn relative(self) -> Self

Source

pub fn absolute(self) -> Self

Source

pub fn overflow_hidden(self) -> Self

Source

pub fn overflow_visible(self) -> Self

Source

pub fn overflow_x_hidden(self) -> Self

Source

pub fn overflow_y_hidden(self) -> Self

Source

pub fn m_auto(self) -> Self

Source

pub fn mx_auto(self) -> Self

Source

pub fn my_auto(self) -> Self

Source

pub fn mt_auto(self) -> Self

Source

pub fn mr_auto(self) -> Self

Source

pub fn mb_auto(self) -> Self

Source

pub fn ml_auto(self) -> Self

Source

pub fn min_w_0(self) -> Self

Source

pub fn w_full(self) -> Self

Source

pub fn h_full(self) -> Self

Source

pub fn size_full(self) -> Self

Source

pub fn basis_0(self) -> Self

Source

pub fn flex_shrink_0(self) -> Self

Source

pub fn flex_1(self) -> Self

Source

pub fn flex_none(self) -> Self

Source

pub fn self_start(self) -> Self

Source

pub fn self_center(self) -> Self

Source

pub fn self_end(self) -> Self

Source

pub fn self_stretch(self) -> Self

Source

pub fn justify_self_start(self) -> Self

Source

pub fn justify_self_center(self) -> Self

Source

pub fn justify_self_end(self) -> Self

Source

pub fn justify_self_stretch(self) -> Self

Source

pub fn w_0(self) -> Self

Source

pub fn h_0(self) -> Self

Source

pub fn min_h_0(self) -> Self

Source

pub fn max_w_0(self) -> Self

Source

pub fn max_h_0(self) -> Self

Source

pub fn w_0p5(self) -> Self

Source

pub fn h_0p5(self) -> Self

Source

pub fn min_w_0p5(self) -> Self

Source

pub fn min_h_0p5(self) -> Self

Source

pub fn max_w_0p5(self) -> Self

Source

pub fn max_h_0p5(self) -> Self

Source

pub fn w_1(self) -> Self

Source

pub fn h_1(self) -> Self

Source

pub fn min_w_1(self) -> Self

Source

pub fn min_h_1(self) -> Self

Source

pub fn max_w_1(self) -> Self

Source

pub fn max_h_1(self) -> Self

Source

pub fn w_1p5(self) -> Self

Source

pub fn h_1p5(self) -> Self

Source

pub fn min_w_1p5(self) -> Self

Source

pub fn min_h_1p5(self) -> Self

Source

pub fn max_w_1p5(self) -> Self

Source

pub fn max_h_1p5(self) -> Self

Source

pub fn w_2(self) -> Self

Source

pub fn h_2(self) -> Self

Source

pub fn min_w_2(self) -> Self

Source

pub fn min_h_2(self) -> Self

Source

pub fn max_w_2(self) -> Self

Source

pub fn max_h_2(self) -> Self

Source

pub fn w_2p5(self) -> Self

Source

pub fn h_2p5(self) -> Self

Source

pub fn min_w_2p5(self) -> Self

Source

pub fn min_h_2p5(self) -> Self

Source

pub fn max_w_2p5(self) -> Self

Source

pub fn max_h_2p5(self) -> Self

Source

pub fn w_3(self) -> Self

Source

pub fn h_3(self) -> Self

Source

pub fn min_w_3(self) -> Self

Source

pub fn min_h_3(self) -> Self

Source

pub fn max_w_3(self) -> Self

Source

pub fn max_h_3(self) -> Self

Source

pub fn w_3p5(self) -> Self

Source

pub fn h_3p5(self) -> Self

Source

pub fn min_w_3p5(self) -> Self

Source

pub fn min_h_3p5(self) -> Self

Source

pub fn max_w_3p5(self) -> Self

Source

pub fn max_h_3p5(self) -> Self

Source

pub fn w_4(self) -> Self

Source

pub fn h_4(self) -> Self

Source

pub fn min_w_4(self) -> Self

Source

pub fn min_h_4(self) -> Self

Source

pub fn max_w_4(self) -> Self

Source

pub fn max_h_4(self) -> Self

Source

pub fn w_5(self) -> Self

Source

pub fn h_5(self) -> Self

Source

pub fn min_w_5(self) -> Self

Source

pub fn min_h_5(self) -> Self

Source

pub fn max_w_5(self) -> Self

Source

pub fn max_h_5(self) -> Self

Source

pub fn w_6(self) -> Self

Source

pub fn h_6(self) -> Self

Source

pub fn min_w_6(self) -> Self

Source

pub fn min_h_6(self) -> Self

Source

pub fn max_w_6(self) -> Self

Source

pub fn max_h_6(self) -> Self

Source

pub fn w_8(self) -> Self

Source

pub fn h_8(self) -> Self

Source

pub fn min_w_8(self) -> Self

Source

pub fn min_h_8(self) -> Self

Source

pub fn max_w_8(self) -> Self

Source

pub fn max_h_8(self) -> Self

Source

pub fn w_10(self) -> Self

Source

pub fn h_10(self) -> Self

Source

pub fn min_w_10(self) -> Self

Source

pub fn min_h_10(self) -> Self

Source

pub fn max_w_10(self) -> Self

Source

pub fn max_h_10(self) -> Self

Source

pub fn w_11(self) -> Self

Source

pub fn h_11(self) -> Self

Source

pub fn min_w_11(self) -> Self

Source

pub fn min_h_11(self) -> Self

Source

pub fn max_w_11(self) -> Self

Source

pub fn max_h_11(self) -> Self

Source§

impl<T: UiPatchTarget> UiBuilder<T>

Source

pub fn build(self) -> T

Source§

impl<H, F> UiBuilder<FlexBox<H, F>>

Source

pub fn gap(self, gap: impl Into<MetricRef>) -> Self

Source

pub fn gap_px(self, gap: Px) -> Self

Source

pub fn gap_metric(self, gap: MetricRef) -> Self

Source

pub fn gap_fraction(self, fraction: f32) -> Self

Source

pub fn gap_percent(self, percent: f32) -> Self

Source

pub fn gap_full(self) -> Self

Source

pub fn justify(self, justify: Justify) -> Self

Source

pub fn justify_start(self) -> Self

Source

pub fn justify_center(self) -> Self

Source

pub fn justify_end(self) -> Self

Source

pub fn justify_between(self) -> Self

Source

pub fn items(self, items: Items) -> Self

Source

pub fn items_start(self) -> Self

Source

pub fn items_center(self) -> Self

Source

pub fn items_end(self) -> Self

Source

pub fn items_stretch(self) -> Self

Source

pub fn wrap(self) -> Self

Source

pub fn no_wrap(self) -> Self

Source§

impl<H, B> UiBuilder<FlexBoxBuild<H, B>>

Source

pub fn gap(self, gap: impl Into<MetricRef>) -> Self

Source

pub fn gap_px(self, gap: Px) -> Self

Source

pub fn gap_metric(self, gap: MetricRef) -> Self

Source

pub fn gap_fraction(self, fraction: f32) -> Self

Source

pub fn gap_percent(self, percent: f32) -> Self

Source

pub fn gap_full(self) -> Self

Source

pub fn justify(self, justify: Justify) -> Self

Source

pub fn justify_start(self) -> Self

Source

pub fn justify_center(self) -> Self

Source

pub fn justify_end(self) -> Self

Source

pub fn justify_between(self) -> Self

Source

pub fn items(self, items: Items) -> Self

Source

pub fn items_start(self) -> Self

Source

pub fn items_center(self) -> Self

Source

pub fn items_end(self) -> Self

Source

pub fn items_stretch(self) -> Self

Source

pub fn wrap(self) -> Self

Source

pub fn no_wrap(self) -> Self

Source§

impl<H, F> UiBuilder<ScrollAreaBox<H, F>>

Source

pub fn axis(self, axis: ScrollAxis) -> Self

Source

pub fn show_scrollbar_x(self, show: bool) -> Self

Source

pub fn show_scrollbar_y(self, show: bool) -> Self

Source

pub fn show_scrollbars(self, x: bool, y: bool) -> Self

Source

pub fn handle(self, handle: ScrollHandle) -> Self

Source§

impl<H, B> UiBuilder<ScrollAreaBoxBuild<H, B>>

Source

pub fn axis(self, axis: ScrollAxis) -> Self

Source

pub fn show_scrollbar_x(self, show: bool) -> Self

Source

pub fn show_scrollbar_y(self, show: bool) -> Self

Source

pub fn show_scrollbars(self, x: bool, y: bool) -> Self

Source

pub fn handle(self, handle: ScrollHandle) -> Self

Source§

impl<T: UiPatchTarget> UiBuilder<T>

Source

pub fn into_element<H: UiHost>( self, cx: &mut ElementContext<'_, H>, ) -> AnyElement
where T: IntoUiElement<H>,

Source§

impl<H: UiHost, B> UiBuilder<ContainerPropsBoxBuild<H, B>>
where B: FnOnce(&mut ElementContext<'_, H>, &mut Vec<AnyElement>),

Source

pub fn into_element(self, cx: &mut ElementContext<'_, H>) -> AnyElement

Source§

impl<H: UiHost, F, I> UiBuilder<ContainerPropsBox<H, F>>
where F: FnOnce(&mut ElementContext<'_, H>) -> I, I: IntoIterator, I::Item: IntoUiElement<H>,

Source

pub fn into_element(self, cx: &mut ElementContext<'_, H>) -> AnyElement

Trait Implementations§

Source§

impl<T: Clone> Clone for UiBuilder<T>

Source§

fn clone(&self) -> UiBuilder<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for UiBuilder<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<H: UiHost, F, I> IntoUiElement<H> for UiBuilder<ContainerPropsBox<H, F>>
where F: FnOnce(&mut ElementContext<'_, H>) -> I, I: IntoIterator, I::Item: IntoUiElement<H>,

Source§

fn into_element(self, cx: &mut ElementContext<'_, H>) -> AnyElement

Source§

impl<H: UiHost, B> IntoUiElement<H> for UiBuilder<ContainerPropsBoxBuild<H, B>>
where B: FnOnce(&mut ElementContext<'_, H>, &mut Vec<AnyElement>),

Source§

fn into_element(self, cx: &mut ElementContext<'_, H>) -> AnyElement

Source§

impl<H: UiHost, T> IntoUiElement<H> for UiBuilder<T>

Source§

fn into_element(self, cx: &mut ElementContext<'_, H>) -> AnyElement

Auto Trait Implementations§

§

impl<T> Freeze for UiBuilder<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for UiBuilder<T>
where T: RefUnwindSafe,

§

impl<T> Send for UiBuilder<T>
where T: Send,

§

impl<T> Sync for UiBuilder<T>
where T: Sync,

§

impl<T> Unpin for UiBuilder<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for UiBuilder<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for UiBuilder<T>
where T: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<H, T> IntoUiElementInExt<H> for T
where H: UiHost, T: IntoUiElement<H>,

Source§

fn into_element_in<'a, Cx>(self, cx: &mut Cx) -> AnyElement
where Cx: ElementContextAccess<'a, H>, H: 'a,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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

Source§

fn a11y(self, decoration: SemanticsDecoration) -> UiElementWithA11y<Self>

Source§

fn a11y_role(self, role: SemanticsRole) -> UiElementWithA11y<Self>

Source§

fn a11y_label(self, label: impl Into<Arc<str>>) -> UiElementWithA11y<Self>

Source§

fn a11y_value(self, value: impl Into<Arc<str>>) -> UiElementWithA11y<Self>

Source§

fn a11y_disabled(self, disabled: bool) -> UiElementWithA11y<Self>

Source§

fn a11y_selected(self, selected: bool) -> UiElementWithA11y<Self>

Source§

fn a11y_expanded(self, expanded: bool) -> UiElementWithA11y<Self>

Source§

fn a11y_checked(self, checked: Option<bool>) -> UiElementWithA11y<Self>

Source§

impl<T> UiElementKeyContextExt for T

Source§

fn key_context( self, key_context: impl Into<Arc<str>>, ) -> UiElementWithKeyContext<Self>

Source§

impl<T> UiElementTestIdExt for T

Source§

fn test_id(self, id: impl Into<Arc<str>>) -> UiElementWithTestId<Self>

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