pub struct Rt;Expand description
The <rt> element - ruby text component.
§Purpose
The <rt> element contains the ruby text component of a ruby annotation,
providing pronunciation or translation information for the base text in a
<ruby> element.
§Content Categories
- None (only valid as child of
<ruby>)
§Permitted Content Model
- Phrasing content
§Common Use Cases
- Pronunciation guides (furigana, pinyin)
- Translation or meaning annotations
- Phonetic transcriptions
§Key Attributes
- Global attributes only
§Example
<ruby>日本<rt>にほん</rt></ruby>
<ruby>北京<rt>Běijīng</rt></ruby>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Rt
impl HtmlElement for Rt
impl CanContain<Rt> for Ruby
Auto Trait Implementations§
impl Freeze for Rt
impl RefUnwindSafe for Rt
impl Send for Rt
impl Sync for Rt
impl Unpin for Rt
impl UnwindSafe for Rt
Blanket Implementations§
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
Mutably borrows from an owned value. Read more