pub struct Rp;Expand description
The <rp> element - ruby fallback parenthesis.
§Purpose
The <rp> element provides parentheses or other characters to be displayed
by browsers that don’t support ruby annotations. It’s used to wrap ruby text
in fallback scenarios.
§Content Categories
- None (only valid as child of
<ruby>)
§Permitted Content Model
- Text (typically parentheses)
§Common Use Cases
- Fallback parentheses for ruby annotations
- Ensuring ruby text is distinguishable in non-supporting browsers
§Key Attributes
- Global attributes only
§Example
<ruby>
漢字<rp>(</rp><rt>かんじ</rt><rp>)</rp>
</ruby>
<!-- Browsers without ruby support show: 漢字(かんじ) -->
<!-- Browsers with ruby support show annotation without parentheses -->§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Rp
impl HtmlElement for Rp
impl CanContain<Rp> for Ruby
Auto Trait Implementations§
impl Freeze for Rp
impl RefUnwindSafe for Rp
impl Send for Rp
impl Sync for Rp
impl Unpin for Rp
impl UnwindSafe for Rp
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