Struct html::inline_text::RubyAnnotation
source · #[non_exhaustive]pub struct RubyAnnotation { /* private fields */ }Expand description
The HTML <ruby> element
Implementations§
source§impl RubyAnnotation
impl RubyAnnotation
sourcepub fn builder() -> RubyAnnotationBuilder
pub fn builder() -> RubyAnnotationBuilder
Create a new builder
source§impl RubyAnnotation
impl RubyAnnotation
sourcepub fn access_key(&self) -> Option<&str>
pub fn access_key(&self) -> Option<&str>
Get the value of the accesskey attribute
sourcepub fn set_access_key(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_access_key(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the accesskey attribute
sourcepub fn auto_capitalize(&self) -> Option<&str>
pub fn auto_capitalize(&self) -> Option<&str>
Get the value of the autocapitalize attribute
sourcepub fn set_auto_capitalize(
&mut self,
value: Option<impl Into<Cow<'static, str>>>
)
pub fn set_auto_capitalize( &mut self, value: Option<impl Into<Cow<'static, str>>> )
Set the value of the autocapitalize attribute
sourcepub fn set_autofocus(&mut self, value: bool)
pub fn set_autofocus(&mut self, value: bool)
Set the value of the autofocus attribute
sourcepub fn set_class(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_class(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the class attribute
sourcepub fn content_editable(&self) -> Option<&str>
pub fn content_editable(&self) -> Option<&str>
Get the value of the contenteditable attribute
sourcepub fn set_content_editable(
&mut self,
value: Option<impl Into<Cow<'static, str>>>
)
pub fn set_content_editable( &mut self, value: Option<impl Into<Cow<'static, str>>> )
Set the value of the contenteditable attribute
sourcepub fn set_direction(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_direction(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the dir attribute
sourcepub fn set_draggable(&mut self, value: bool)
pub fn set_draggable(&mut self, value: bool)
Set the value of the draggable attribute
sourcepub fn enter_key_hint(&self) -> Option<&str>
pub fn enter_key_hint(&self) -> Option<&str>
Get the value of the enterkeyhint attribute
sourcepub fn set_enter_key_hint(
&mut self,
value: Option<impl Into<Cow<'static, str>>>
)
pub fn set_enter_key_hint( &mut self, value: Option<impl Into<Cow<'static, str>>> )
Set the value of the enterkeyhint attribute
sourcepub fn export_parts(&self) -> Option<&str>
pub fn export_parts(&self) -> Option<&str>
Get the value of the exportparts attribute
sourcepub fn set_export_parts(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_export_parts(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the exportparts attribute
Get the value of the hidden attribute
Set the value of the hidden attribute
sourcepub fn set_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the id attribute
sourcepub fn input_mode(&self) -> Option<&str>
pub fn input_mode(&self) -> Option<&str>
Get the value of the inputmode attribute
sourcepub fn set_input_mode(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_input_mode(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the inputmode attribute
sourcepub fn set_is_(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_is_(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the is attribute
sourcepub fn set_item_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_item_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the itemid attribute
sourcepub fn set_item_prop(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_item_prop(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the itemprop attribute
sourcepub fn set_item_ref(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_item_ref(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the itemref attribute
sourcepub fn item_scope(&self) -> Option<&str>
pub fn item_scope(&self) -> Option<&str>
Get the value of the itemscope attribute
sourcepub fn set_item_scope(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_item_scope(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the itemscope attribute
sourcepub fn set_item_type(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_item_type(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the itemtype attribute
sourcepub fn set_lang(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_lang(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the lang attribute
sourcepub fn set_nonce(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_nonce(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the nonce attribute
sourcepub fn set_part(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_part(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the part attribute
sourcepub fn set_slot(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_slot(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the slot attribute
sourcepub fn spellcheck(&self) -> Option<&str>
pub fn spellcheck(&self) -> Option<&str>
Get the value of the spellcheck attribute
sourcepub fn set_spellcheck(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_spellcheck(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the spellcheck attribute
sourcepub fn set_style(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_style(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the style attribute
sourcepub fn set_tab_index(&mut self, value: Option<i64>)
pub fn set_tab_index(&mut self, value: Option<i64>)
Set the value of the tabindex attribute
sourcepub fn set_title(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_title(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the title attribute
sourcepub fn set_translate(&mut self, value: bool)
pub fn set_translate(&mut self, value: bool)
Set the value of the translate attribute
Trait Implementations§
source§impl Clone for RubyAnnotation
impl Clone for RubyAnnotation
source§fn clone(&self) -> RubyAnnotation
fn clone(&self) -> RubyAnnotation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RubyAnnotation
impl Debug for RubyAnnotation
source§impl Default for RubyAnnotation
impl Default for RubyAnnotation
source§fn default() -> RubyAnnotation
fn default() -> RubyAnnotation
source§impl Display for RubyAnnotation
impl Display for RubyAnnotation
source§impl From<RubyAnnotation> for AbbreviationChild
impl From<RubyAnnotation> for AbbreviationChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for AddressChild
impl From<RubyAnnotation> for AddressChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for ArticleChild
impl From<RubyAnnotation> for ArticleChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for AsideChild
impl From<RubyAnnotation> for AsideChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for BidirectionalIsolateChild
impl From<RubyAnnotation> for BidirectionalIsolateChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for BidirectionalTextOverrideChild
impl From<RubyAnnotation> for BidirectionalTextOverrideChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for BlockQuoteChild
impl From<RubyAnnotation> for BlockQuoteChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for BoldChild
impl From<RubyAnnotation> for BoldChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for ButtonChild
impl From<RubyAnnotation> for ButtonChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for CiteChild
impl From<RubyAnnotation> for CiteChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for CodeChild
impl From<RubyAnnotation> for CodeChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for DataChild
impl From<RubyAnnotation> for DataChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for DefinitionChild
impl From<RubyAnnotation> for DefinitionChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for DialogChild
impl From<RubyAnnotation> for DialogChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for DivisionChild
impl From<RubyAnnotation> for DivisionChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for EmphasisChild
impl From<RubyAnnotation> for EmphasisChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for FormChild
impl From<RubyAnnotation> for FormChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for HeaderChild
impl From<RubyAnnotation> for HeaderChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for Heading1Child
impl From<RubyAnnotation> for Heading1Child
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for Heading2Child
impl From<RubyAnnotation> for Heading2Child
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for Heading3Child
impl From<RubyAnnotation> for Heading3Child
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for Heading4Child
impl From<RubyAnnotation> for Heading4Child
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for Heading5Child
impl From<RubyAnnotation> for Heading5Child
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for Heading6Child
impl From<RubyAnnotation> for Heading6Child
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for ItalicChild
impl From<RubyAnnotation> for ItalicChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for KeyboardInputChild
impl From<RubyAnnotation> for KeyboardInputChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for LabelChild
impl From<RubyAnnotation> for LabelChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for MainChild
impl From<RubyAnnotation> for MainChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for MarkTextChild
impl From<RubyAnnotation> for MarkTextChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for MeterChild
impl From<RubyAnnotation> for MeterChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for OutputChild
impl From<RubyAnnotation> for OutputChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for ParagraphChild
impl From<RubyAnnotation> for ParagraphChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for PreformattedTextChild
impl From<RubyAnnotation> for PreformattedTextChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for ProgressChild
impl From<RubyAnnotation> for ProgressChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for QuotationChild
impl From<RubyAnnotation> for QuotationChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for RubyAnnotation
impl From<RubyAnnotation> for RubyAnnotation
source§fn from(sys: RubyAnnotation) -> Self
fn from(sys: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for SampleOutputChild
impl From<RubyAnnotation> for SampleOutputChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for SectionChild
impl From<RubyAnnotation> for SectionChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for SideCommentChild
impl From<RubyAnnotation> for SideCommentChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for SpanChild
impl From<RubyAnnotation> for SpanChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for StrikeThroughChild
impl From<RubyAnnotation> for StrikeThroughChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for StrongChild
impl From<RubyAnnotation> for StrongChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for SubScriptChild
impl From<RubyAnnotation> for SubScriptChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for SuperScriptChild
impl From<RubyAnnotation> for SuperScriptChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for TimeChild
impl From<RubyAnnotation> for TimeChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for UnderlineChild
impl From<RubyAnnotation> for UnderlineChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl From<RubyAnnotation> for VariableChild
impl From<RubyAnnotation> for VariableChild
source§fn from(value: RubyAnnotation) -> Self
fn from(value: RubyAnnotation) -> Self
source§impl Into<RubyAnnotation> for RubyAnnotation
impl Into<RubyAnnotation> for RubyAnnotation
source§fn into(self) -> RubyAnnotation
fn into(self) -> RubyAnnotation
source§impl PartialEq<RubyAnnotation> for RubyAnnotation
impl PartialEq<RubyAnnotation> for RubyAnnotation
source§fn eq(&self, other: &RubyAnnotation) -> bool
fn eq(&self, other: &RubyAnnotation) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd<RubyAnnotation> for RubyAnnotation
impl PartialOrd<RubyAnnotation> for RubyAnnotation
source§fn partial_cmp(&self, other: &RubyAnnotation) -> Option<Ordering>
fn partial_cmp(&self, other: &RubyAnnotation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more