pub struct caption;Expand description
The title of the table that is its parent, if it has a parent and that
is a table element.
Trait Implementations§
Source§impl GlobalAttributes for caption
impl GlobalAttributes for caption
Source§const access_key: Attribute = Attribute
const access_key: Attribute = Attribute
Source§const autocapitalize: Attribute = Attribute
const autocapitalize: Attribute = Attribute
Source§const autofocus: Attribute = Attribute
const autofocus: Attribute = Attribute
Source§const contenteditable: Attribute = Attribute
const contenteditable: Attribute = Attribute
Source§const enterkeyhint: Attribute = Attribute
const enterkeyhint: Attribute = Attribute
enter key should do.Source§const inert: Attribute = Attribute
const inert: Attribute = Attribute
Source§const inputmode: Attribute = Attribute
const inputmode: Attribute = Attribute
Source§const itemref: Attribute = Attribute
const itemref: Attribute = Attribute
Source§const nonce: Attribute = Attribute
const nonce: Attribute = Attribute
Source§const popover: Attribute = Attribute
const popover: Attribute = Attribute
Source§const spellcheck: Attribute = Attribute
const spellcheck: Attribute = Attribute
impl Copy for caption
Auto Trait Implementations§
impl Freeze for caption
impl RefUnwindSafe for caption
impl Send for caption
impl Sync for caption
impl Unpin for caption
impl UnwindSafe for caption
Blanket Implementations§
Source§impl<T> AlpineJsAttributes for Twhere
T: GlobalAttributes,
impl<T> AlpineJsAttributes for Twhere
T: GlobalAttributes,
Source§const x_data: Attribute = Attribute
const x_data: Attribute = Attribute
alpine only.Source§const x_bind: AttributeNamespace = AttributeNamespace
const x_bind: AttributeNamespace = AttributeNamespace
alpine only.Source§const _colon: AttributeSymbol = AttributeSymbol
const _colon: AttributeSymbol = AttributeSymbol
alpine only.Source§const x_on: AttributeNamespace = AttributeNamespace
const x_on: AttributeNamespace = AttributeNamespace
alpine only.Source§const _at: AttributeSymbol = AttributeSymbol
const _at: AttributeSymbol = AttributeSymbol
alpine only.Source§const x_text: Attribute = Attribute
const x_text: Attribute = Attribute
alpine only.Source§const x_html: Attribute = Attribute
const x_html: Attribute = Attribute
alpine only.Source§const x_model: Attribute = Attribute
const x_model: Attribute = Attribute
alpine only.Source§const x_show: Attribute = Attribute
const x_show: Attribute = Attribute
alpine only.Source§const x_transition: Attribute = Attribute
const x_transition: Attribute = Attribute
alpine only.Source§const x_for: Attribute = Attribute
const x_for: Attribute = Attribute
alpine only.Source§const x_if: Attribute = Attribute
const x_if: Attribute = Attribute
alpine only.Source§const x_init: Attribute = Attribute
const x_init: Attribute = Attribute
alpine only.Source§const x_effect: Attribute = Attribute
const x_effect: Attribute = Attribute
alpine only.Source§const x_ref: Attribute = Attribute
const x_ref: Attribute = Attribute
alpine only.Source§impl<T> AriaAttributes for Twhere
T: GlobalAttributes,
impl<T> AriaAttributes for Twhere
T: GlobalAttributes,
const role: Attribute = Attribute
const aria_activedescendant: Attribute = Attribute
const aria_atomic: Attribute = Attribute
const aria_autocomplete: Attribute = Attribute
const aria_braillelabel: Attribute = Attribute
const aria_brailleroledescription: Attribute = Attribute
const aria_busy: Attribute = Attribute
const aria_checked: Attribute = Attribute
const aria_colcount: Attribute = Attribute
const aria_colindex: Attribute = Attribute
const aria_colindextext: Attribute = Attribute
const aria_colspan: Attribute = Attribute
const aria_controls: Attribute = Attribute
const aria_current: Attribute = Attribute
const aria_describedby: Attribute = Attribute
const aria_description: Attribute = Attribute
const aria_details: Attribute = Attribute
const aria_disabled: Attribute = Attribute
const aria_dropeffect: Attribute = Attribute
const aria_errormessage: Attribute = Attribute
const aria_expanded: Attribute = Attribute
const aria_flowto: Attribute = Attribute
const aria_grabbed: Attribute = Attribute
const aria_haspopup: Attribute = Attribute
const aria_invalid: Attribute = Attribute
const aria_keyshortcuts: Attribute = Attribute
const aria_label: Attribute = Attribute
const aria_labelledby: Attribute = Attribute
const aria_level: Attribute = Attribute
const aria_live: Attribute = Attribute
const aria_modal: Attribute = Attribute
const aria_multiline: Attribute = Attribute
const aria_multiselectable: Attribute = Attribute
const aria_orientation: Attribute = Attribute
const aria_owns: Attribute = Attribute
const aria_placeholder: Attribute = Attribute
const aria_posinset: Attribute = Attribute
const aria_pressed: Attribute = Attribute
const aria_readonly: Attribute = Attribute
const aria_relevant: Attribute = Attribute
const aria_required: Attribute = Attribute
const aria_roledescription: Attribute = Attribute
const aria_rowcount: Attribute = Attribute
const aria_rowindex: Attribute = Attribute
const aria_rowindextext: Attribute = Attribute
const aria_rowspan: Attribute = Attribute
const aria_selected: Attribute = Attribute
const aria_setsize: Attribute = Attribute
const aria_sort: Attribute = Attribute
const aria_valuemax: Attribute = Attribute
const aria_valuemin: Attribute = Attribute
const aria_valuenow: Attribute = Attribute
const aria_valuetext: Attribute = Attribute
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EventHandlerAttributes for Twhere
T: GlobalAttributes,
impl<T> EventHandlerAttributes for Twhere
T: GlobalAttributes,
const onabort: Attribute = Attribute
const onautocomplete: Attribute = Attribute
const onautocompleteerror: Attribute = Attribute
const onblur: Attribute = Attribute
const oncancel: Attribute = Attribute
const oncanplay: Attribute = Attribute
const oncanplaythrough: Attribute = Attribute
const onchange: Attribute = Attribute
const onclick: Attribute = Attribute
const onclose: Attribute = Attribute
const oncuechange: Attribute = Attribute
const ondblclick: Attribute = Attribute
const ondrag: Attribute = Attribute
const ondragend: Attribute = Attribute
const ondragenter: Attribute = Attribute
const ondragleave: Attribute = Attribute
const ondragover: Attribute = Attribute
const ondragstart: Attribute = Attribute
const ondrop: Attribute = Attribute
const ondurationchange: Attribute = Attribute
const onemptied: Attribute = Attribute
const onended: Attribute = Attribute
const onerror: Attribute = Attribute
const onfocus: Attribute = Attribute
const oninput: Attribute = Attribute
const oninvalid: Attribute = Attribute
const onkeydown: Attribute = Attribute
const onkeypress: Attribute = Attribute
const onkeyup: Attribute = Attribute
const onload: Attribute = Attribute
const onloadeddata: Attribute = Attribute
const onloadedmetadata: Attribute = Attribute
const onloadstart: Attribute = Attribute
const onmousedown: Attribute = Attribute
const onmouseenter: Attribute = Attribute
const onmouseleave: Attribute = Attribute
const onmousemove: Attribute = Attribute
const onmouseout: Attribute = Attribute
const onmouseover: Attribute = Attribute
const onmouseup: Attribute = Attribute
const onmousewheel: Attribute = Attribute
const onpause: Attribute = Attribute
const onplay: Attribute = Attribute
const onplaying: Attribute = Attribute
const onprogress: Attribute = Attribute
const onratechange: Attribute = Attribute
const onreset: Attribute = Attribute
const onresize: Attribute = Attribute
const onscroll: Attribute = Attribute
const onseeked: Attribute = Attribute
const onseeking: Attribute = Attribute
const onselect: Attribute = Attribute
const onshow: Attribute = Attribute
const onsort: Attribute = Attribute
const onstalled: Attribute = Attribute
const onsubmit: Attribute = Attribute
const onsuspend: Attribute = Attribute
const ontimeupdate: Attribute = Attribute
const ontoggle: Attribute = Attribute
const onvolumechange: Attribute = Attribute
const onwaiting: Attribute = Attribute
Source§impl<T> HtmxAttributes for Twhere
T: GlobalAttributes,
impl<T> HtmxAttributes for Twhere
T: GlobalAttributes,
Source§const hx_get: Attribute = Attribute
const hx_get: Attribute = Attribute
htmx only.GET to the specified URLSource§const hx_post: Attribute = Attribute
const hx_post: Attribute = Attribute
htmx only.POST to the specified URLSource§const hx_on: AttributeNamespace = AttributeNamespace
const hx_on: AttributeNamespace = AttributeNamespace
htmx only.Source§const hx_push_url: Attribute = Attribute
const hx_push_url: Attribute = Attribute
htmx only.Source§const hx_select: Attribute = Attribute
const hx_select: Attribute = Attribute
htmx only.Source§const hx_select_oob: Attribute = Attribute
const hx_select_oob: Attribute = Attribute
htmx only.Source§const hx_swap: Attribute = Attribute
const hx_swap: Attribute = Attribute
htmx only.outerHTML, beforeend,
afterend, …)Source§const hx_swap_oob: Attribute = Attribute
const hx_swap_oob: Attribute = Attribute
htmx only.Source§const hx_target: Attribute = Attribute
const hx_target: Attribute = Attribute
htmx only.Source§const hx_trigger: Attribute = Attribute
const hx_trigger: Attribute = Attribute
htmx only.Source§const hx_vals: Attribute = Attribute
const hx_vals: Attribute = Attribute
htmx only.Source§const hx_boost: Attribute = Attribute
const hx_boost: Attribute = Attribute
htmx only.Source§const hx_confirm: Attribute = Attribute
const hx_confirm: Attribute = Attribute
htmx only.confirm() dialog before issuing a requestSource§const hx_delete: Attribute = Attribute
const hx_delete: Attribute = Attribute
htmx only.DELETE to the specified URLSource§const hx_disable: Attribute = Attribute
const hx_disable: Attribute = Attribute
htmx only.Source§const hx_disabled_elt: Attribute = Attribute
const hx_disabled_elt: Attribute = Attribute
htmx only.disabled attribute to the specified elements while a
request is in flightSource§const hx_disinherit: Attribute = Attribute
const hx_disinherit: Attribute = Attribute
htmx only.Source§const hx_encoding: Attribute = Attribute
const hx_encoding: Attribute = Attribute
htmx only.Source§const hx_ext: Attribute = Attribute
const hx_ext: Attribute = Attribute
htmx only.Source§const hx_headers: Attribute = Attribute
const hx_headers: Attribute = Attribute
htmx only.Source§const hx_history: Attribute = Attribute
const hx_history: Attribute = Attribute
htmx only.Source§const hx_history_elt: Attribute = Attribute
const hx_history_elt: Attribute = Attribute
htmx only.Source§const hx_include: Attribute = Attribute
const hx_include: Attribute = Attribute
htmx only.Source§const hx_indicator: Attribute = Attribute
const hx_indicator: Attribute = Attribute
htmx only.htmx-request class on during the requestSource§const hx_inherit: Attribute = Attribute
const hx_inherit: Attribute = Attribute
htmx only.Source§const hx_params: Attribute = Attribute
const hx_params: Attribute = Attribute
htmx only.Source§const hx_patch: Attribute = Attribute
const hx_patch: Attribute = Attribute
htmx only.PATCH to the specified URLSource§const hx_preserve: Attribute = Attribute
const hx_preserve: Attribute = Attribute
htmx only.Source§const hx_prompt: Attribute = Attribute
const hx_prompt: Attribute = Attribute
htmx only.prompt() before submitting a requestSource§const hx_put: Attribute = Attribute
const hx_put: Attribute = Attribute
htmx only.PUT to the specified URLSource§const hx_replace_url: Attribute = Attribute
const hx_replace_url: Attribute = Attribute
htmx only.Source§const hx_request: Attribute = Attribute
const hx_request: Attribute = Attribute
htmx only.Source§const hx_sync: Attribute = Attribute
const hx_sync: Attribute = Attribute
htmx only.Source§const hx_validate: Attribute = Attribute
const hx_validate: Attribute = Attribute
htmx only.Source§impl<T> HyperscriptAttributes for Twhere
T: GlobalAttributes,
impl<T> HyperscriptAttributes for Twhere
T: GlobalAttributes,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);