pub struct TrArgs { /* private fields */ }Expand description
A message with arguments: one concrete type, whatever the arity, so that a call site instantiates no generic.
Implementations§
Source§impl TrArgs
impl TrArgs
Sourcepub fn to_string(&self) -> String
Available on crate feature native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.
pub fn to_string(&self) -> String
native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.The message’s text in the language in force (the one lookup,
above), isolated as that language’s side says: the Default
Bidi Strategy for a request’s or a page’s catalog, and the
store’s setting natively (mf2::native::set_bidi), off until
set. to_plain_string is the form
for text a program consumes.
The text Display writes, without core::fmt.
§Panics
In a build whose only mode is native, before
mf2::native::install (outside with_locale).
Sourcepub fn to_plain_string(&self) -> String
Available on crate feature native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.
pub fn to_plain_string(&self) -> String
native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.Sourcepub fn to_cow(&self) -> Cow<'static, str>
Available on crate feature native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.
pub fn to_cow(&self) -> Cow<'static, str>
native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.Sourcepub fn to_display_string(&self) -> String
Available on (crate feature native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos)) and (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.
pub fn to_display_string(&self) -> String
native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos)) and (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.A synonym of to_string, kept from when
to_string() was plain.
Trait Implementations§
Source§impl AddAnyAttr for TrArgs
Available on crate features csr or hydrate or ssr only.
impl AddAnyAttr for TrArgs
csr or hydrate or ssr only.Source§impl AttributeValue for TrArgs
Available on crate features csr or hydrate or ssr only.
impl AttributeValue for TrArgs
csr or hydrate or ssr only.Source§type AsyncOutput = TrArgs
type AsyncOutput = TrArgs
Source§type Cloneable = TrArgs
type Cloneable = TrArgs
FnMut() continues mutating the same
closure), but making a String cloneable does not necessarily need to make it an
Arc<str>, as two different clones of a String will still have the same value.Source§type CloneableOwned = TrArgs
type CloneableOwned = TrArgs
'static. This is used for spreading across types when the
spreadable attribute needs to be owned. In some cases (&'a str to Arc<str>, etc.) the owned
cloneable type has worse performance than the cloneable type, so they are separate.Source§fn to_template(_key: &str, _buf: &mut String)
fn to_template(_key: &str, _buf: &mut String)
<template>.Source§fn hydrate<const FROM_SERVER: bool>(
self,
key: &str,
el: &Element,
) -> Self::State
fn hydrate<const FROM_SERVER: bool>( self, key: &str, el: &Element, ) -> Self::State
<template>.Source§fn build(self, el: &Element, key: &str) -> Self::State
fn build(self, el: &Element, key: &str) -> Self::State
Source§fn into_cloneable(self) -> Self::Cloneable
fn into_cloneable(self) -> Self::Cloneable
Source§fn into_cloneable_owned(self) -> Self::CloneableOwned
fn into_cloneable_owned(self) -> Self::CloneableOwned
'static.Source§fn dry_resolve(&mut self)
fn dry_resolve(&mut self)
Source§impl Display for TrArgs
Available on crate feature native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.The text to_cow gives, padded when the format
asks ({:<12}).
impl Display for TrArgs
native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.The text to_cow gives, padded when the format
asks ({:<12}).
Source§impl From<&TrArgs> for Span<'static>
Available on crate feature ratatui only.The message as one span, as by value.
impl From<&TrArgs> for Span<'static>
ratatui only.The message as one span, as by value.
Source§impl From<&TrArgs> for Line<'static>
Available on crate feature ratatui only.The message as one line, as by value.
impl From<&TrArgs> for Line<'static>
ratatui only.The message as one line, as by value.
Source§impl From<&TrArgs> for Text<'static>
Available on crate feature ratatui only.The message as text, as by value.
impl From<&TrArgs> for Text<'static>
ratatui only.The message as text, as by value.
Source§impl From<TrArgs> for String
Available on crate feature native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.
impl From<TrArgs> for String
native, or (crate features csr or hydrate or ssr) and (crate features leptos-0-8 or leptos) only.Source§impl From<TrArgs> for Span<'static>
Available on crate feature ratatui only.The message as one span: its lines joined with a space, its
markup flattened (a span has one style).
impl From<TrArgs> for Span<'static>
ratatui only.The message as one span: its lines joined with a space, its markup flattened (a span has one style).
Source§impl From<TrArgs> for Line<'static>
Available on crate feature ratatui only.The message as one line, its markup as the theme’s styles, its
lines joined with a space.
impl From<TrArgs> for Line<'static>
ratatui only.The message as one line, its markup as the theme’s styles, its lines joined with a space.
Source§impl From<TrArgs> for Text<'static>
Available on crate feature ratatui only.The message as text, its markup as the theme’s styles: a new
line at each line break.
impl From<TrArgs> for Text<'static>
ratatui only.The message as text, its markup as the theme’s styles: a new line at each line break.
Source§impl From<TrArgs> for TextProp
Available on crate features csr or hydrate or ssr only.Derived: re-read after a locale switch (client), captured for the
request (server).
impl From<TrArgs> for TextProp
csr or hydrate or ssr only.Derived: re-read after a locale switch (client), captured for the request (server).
Source§impl From<TrArgs> for Signal<String>
Available on crate features csr or hydrate or ssr only.Derived, like TextProp.
impl From<TrArgs> for Signal<String>
csr or hydrate or ssr only.Derived, like TextProp.
Source§impl From<TrArgs> for Oco<'static, str>
Available on crate features csr or hydrate or ssr only.Not derived: an Oco is a value, so this is the message’s
text now. It is the cheapest prop — and the one a component holds
across a locale switch without noticing, which is why
#[prop(into)] TextProp is what the documentation steers to.
impl From<TrArgs> for Oco<'static, str>
csr or hydrate or ssr only.Not derived: an Oco is a value, so this is the message’s
text now. It is the cheapest prop — and the one a component holds
across a locale switch without noticing, which is why
#[prop(into)] TextProp is what the documentation steers to.
Source§impl IntoProperty for TrArgs
Available on crate features csr or hydrate or ssr only.
impl IntoProperty for TrArgs
csr or hydrate or ssr only.Source§type CloneableOwned = TrArgs
type CloneableOwned = TrArgs
'static.Source§fn hydrate<const FROM_SERVER: bool>(
self,
el: &Element,
key: &str,
) -> Self::State
fn hydrate<const FROM_SERVER: bool>( self, el: &Element, key: &str, ) -> Self::State
Source§fn build(self, el: &Element, key: &str) -> Self::State
fn build(self, el: &Element, key: &str) -> Self::State
Source§fn into_cloneable(self) -> Self::Cloneable
fn into_cloneable(self) -> Self::Cloneable
Source§fn into_cloneable_owned(self) -> Self::CloneableOwned
fn into_cloneable_owned(self) -> Self::CloneableOwned
Source§impl RenderHtml for TrArgs
Available on crate features csr or hydrate or ssr only.
impl RenderHtml for TrArgs
csr or hydrate or ssr only.Source§const MIN_LENGTH: usize = 0
const MIN_LENGTH: usize = 0
Source§type AsyncOutput = TrArgs
type AsyncOutput = TrArgs
Source§fn dry_resolve(&mut self)
fn dry_resolve(&mut self)
Source§fn resolve(self) -> impl Future<Output = Self::AsyncOutput> + Send
fn resolve(self) -> impl Future<Output = Self::AsyncOutput> + Send
Source§fn html_len(&self) -> usize
fn html_len(&self) -> usize
Source§fn to_html_with_buf(
self,
buf: &mut String,
position: &mut Position,
flags: RenderFlags,
extra_attrs: Vec<AnyAttribute>,
)
fn to_html_with_buf( self, buf: &mut String, position: &mut Position, flags: RenderFlags, extra_attrs: Vec<AnyAttribute>, )
Source§fn hydrate<const FROM_SERVER: bool>(
self,
cursor: &Cursor,
position: &PositionState,
) -> Self::State
fn hydrate<const FROM_SERVER: bool>( self, cursor: &Cursor, position: &PositionState, ) -> Self::State
Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
'static.Source§const EXISTS: bool = true
const EXISTS: bool = true
Source§fn to_html_branching(self) -> Stringwhere
Self: Sized,
fn to_html_branching(self) -> Stringwhere
Self: Sized,
Source§fn to_html_stream_in_order(self) -> StreamBuilderwhere
Self: Sized,
fn to_html_stream_in_order(self) -> StreamBuilderwhere
Self: Sized,
Source§fn to_html_stream_in_order_branching(self) -> StreamBuilderwhere
Self: Sized,
fn to_html_stream_in_order_branching(self) -> StreamBuilderwhere
Self: Sized,
Source§fn to_html_stream_out_of_order(self) -> StreamBuilderwhere
Self: Sized,
fn to_html_stream_out_of_order(self) -> StreamBuilderwhere
Self: Sized,
Source§fn to_html_stream_out_of_order_branching(self) -> StreamBuilderwhere
Self: Sized,
fn to_html_stream_out_of_order_branching(self) -> StreamBuilderwhere
Self: Sized,
Source§fn to_html_async_with_buf<const OUT_OF_ORDER: bool>(
self,
buf: &mut StreamBuilder,
position: &mut Position,
flags: RenderFlags,
extra_attrs: Vec<AnyAttribute>,
)where
Self: Sized,
fn to_html_async_with_buf<const OUT_OF_ORDER: bool>(
self,
buf: &mut StreamBuilder,
position: &mut Position,
flags: RenderFlags,
extra_attrs: Vec<AnyAttribute>,
)where
Self: Sized,
Source§fn hydrate_async(
self,
cursor: &Cursor,
position: &PositionState,
) -> impl Future<Output = Self::State>
fn hydrate_async( self, cursor: &Cursor, position: &PositionState, ) -> impl Future<Output = Self::State>
Source§fn hydrate_from<const FROM_SERVER: bool>(self, el: &Element) -> Self::Statewhere
Self: Sized,
fn hydrate_from<const FROM_SERVER: bool>(self, el: &Element) -> Self::Statewhere
Self: Sized,
RenderHtml::hydrate, beginning at the given element.Source§fn hydrate_from_position<const FROM_SERVER: bool>(
self,
el: &Element,
position: Position,
) -> Self::Statewhere
Self: Sized,
fn hydrate_from_position<const FROM_SERVER: bool>(
self,
el: &Element,
position: Position,
) -> Self::Statewhere
Self: Sized,
RenderHtml::hydrate, beginning at the given element and position.Source§impl Styled for TrArgs
Available on crate feature ratatui only.Styled as its Line, so Ratatui’s Stylize works: the line
keeps the message’s own markup styles, over the call’s.
impl Styled for TrArgs
ratatui only.Styled as its Line, so Ratatui’s Stylize works: the line
keeps the message’s own markup styles, over the call’s.
Source§impl ToTemplate for TrArgs
Available on crate features csr or hydrate or ssr only.
impl ToTemplate for TrArgs
csr or hydrate or ssr only.Source§fn to_template(
buf: &mut String,
_class: &mut String,
_style: &mut String,
_inner_html: &mut String,
position: &mut Position,
)
fn to_template( buf: &mut String, _class: &mut String, _style: &mut String, _inner_html: &mut String, position: &mut Position, )
<template> that corresponds
to a view of a particular type.Auto Trait Implementations§
impl !RefUnwindSafe for TrArgs
impl !UnwindSafe for TrArgs
impl Freeze for TrArgs
impl Send for TrArgs
impl Sync for TrArgs
impl Unpin for TrArgs
impl UnsafeUnpin for TrArgs
Blanket Implementations§
Source§impl<V, Key, Sig, T> BindAttribute<Key, Sig, T> for Vwhere
V: AddAnyAttr,
Key: AttributeKey,
Sig: IntoSplitSignal<Value = T>,
T: FromEventTarget + AttributeValue + PartialEq + Sync + 'static,
Signal<BoolOrT<T>>: IntoProperty,
<Sig as IntoSplitSignal>::Read: Get<Value = T> + Send + Sync + Clone + 'static,
<Sig as IntoSplitSignal>::Write: Send + Clone + 'static,
Element: GetValue<T>,
impl<V, Key, Sig, T> BindAttribute<Key, Sig, T> for Vwhere
V: AddAnyAttr,
Key: AttributeKey,
Sig: IntoSplitSignal<Value = T>,
T: FromEventTarget + AttributeValue + PartialEq + Sync + 'static,
Signal<BoolOrT<T>>: IntoProperty,
<Sig as IntoSplitSignal>::Read: Get<Value = T> + Send + Sync + Clone + 'static,
<Sig as IntoSplitSignal>::Write: Send + Clone + 'static,
Element: GetValue<T>,
Source§type Output = <V as AddAnyAttr>::Output<Bind<Key, T, <Sig as IntoSplitSignal>::Read, <Sig as IntoSplitSignal>::Write>>
type Output = <V as AddAnyAttr>::Output<Bind<Key, T, <Sig as IntoSplitSignal>::Read, <Sig as IntoSplitSignal>::Write>>
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, K, V> CustomAttribute<K, V> for T
impl<T, K, V> CustomAttribute<K, V> for T
Source§fn attr(self, key: K, value: V) -> Self::Output<CustomAttr<K, V>>
fn attr(self, key: K, value: V) -> Self::Output<CustomAttr<K, V>>
Source§impl<V, T, P, D> DirectiveAttribute<T, P, D> for V
impl<V, T, P, D> DirectiveAttribute<T, P, D> for V
Source§type Output = <V as AddAnyAttr>::Output<Directive<T, D, P>>
type Output = <V as AddAnyAttr>::Output<Directive<T, D, P>>
Source§fn directive(
self,
handler: D,
param: P,
) -> <V as DirectiveAttribute<T, P, D>>::Output
fn directive( self, handler: D, param: P, ) -> <V as DirectiveAttribute<T, P, D>>::Output
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoAny for Twhere
T: Send + RenderHtml,
impl<T> IntoAny for Twhere
T: Send + RenderHtml,
Source§impl<T> IntoAttributeValue for Twhere
T: AttributeValue,
impl<T> IntoAttributeValue for Twhere
T: AttributeValue,
Source§fn into_attribute_value(self) -> <T as IntoAttributeValue>::Output
fn into_attribute_value(self) -> <T as IntoAttributeValue>::Output
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> IntoMaybeErased for Twhere
T: RenderHtml,
impl<T> IntoMaybeErased for Twhere
T: RenderHtml,
Source§fn into_maybe_erased(self) -> <T as IntoMaybeErased>::Output
fn into_maybe_erased(self) -> <T as IntoMaybeErased>::Output
Source§impl<T> IntoRender for Twhere
T: Render,
impl<T> IntoRender for Twhere
T: Render,
Source§fn into_render(self) -> <T as IntoRender>::Output
fn into_render(self) -> <T as IntoRender>::Output
Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Source§impl<T, U> Stylize<'_, T> for Uwhere
U: Styled<Item = T>,
impl<T, U> Stylize<'_, T> for Uwhere
U: Styled<Item = T>,
fn bg<C>(self, color: C) -> T
fn fg<C>(self, color: C) -> T
fn add_modifier(self, modifier: Modifier) -> T
fn remove_modifier(self, modifier: Modifier) -> T
fn reset(self) -> T
Source§fn on_magenta(self) -> T
fn on_magenta(self) -> T
magenta.Source§fn on_dark_gray(self) -> T
fn on_dark_gray(self) -> T
dark_gray.Source§fn on_light_red(self) -> T
fn on_light_red(self) -> T
light_red.Source§fn light_green(self) -> T
fn light_green(self) -> T
light_green.Source§fn on_light_green(self) -> T
fn on_light_green(self) -> T
light_green.Source§fn light_yellow(self) -> T
fn light_yellow(self) -> T
light_yellow.Source§fn on_light_yellow(self) -> T
fn on_light_yellow(self) -> T
light_yellow.Source§fn light_blue(self) -> T
fn light_blue(self) -> T
light_blue.Source§fn on_light_blue(self) -> T
fn on_light_blue(self) -> T
light_blue.Source§fn light_magenta(self) -> T
fn light_magenta(self) -> T
light_magenta.Source§fn on_light_magenta(self) -> T
fn on_light_magenta(self) -> T
light_magenta.Source§fn light_cyan(self) -> T
fn light_cyan(self) -> T
light_cyan.Source§fn on_light_cyan(self) -> T
fn on_light_cyan(self) -> T
light_cyan.Source§fn not_italic(self) -> T
fn not_italic(self) -> T
italic modifier.Source§fn underlined(self) -> T
fn underlined(self) -> T
underlined modifier.Source§fn not_underlined(self) -> T
fn not_underlined(self) -> T
underlined modifier.Source§fn slow_blink(self) -> T
fn slow_blink(self) -> T
slow_blink modifier.Source§fn not_slow_blink(self) -> T
fn not_slow_blink(self) -> T
slow_blink modifier.Source§fn rapid_blink(self) -> T
fn rapid_blink(self) -> T
rapid_blink modifier.Source§fn not_rapid_blink(self) -> T
fn not_rapid_blink(self) -> T
rapid_blink modifier.Source§fn not_reversed(self) -> T
fn not_reversed(self) -> T
reversed modifier.hidden modifier.hidden modifier.Source§fn crossed_out(self) -> T
fn crossed_out(self) -> T
crossed_out modifier.Source§fn not_crossed_out(self) -> T
fn not_crossed_out(self) -> T
crossed_out modifier.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more