Struct html::inline_text::SuperScript
source · #[non_exhaustive]pub struct SuperScript { /* private fields */ }Expand description
The HTML <sup> element
Implementations§
source§impl SuperScript
impl SuperScript
sourcepub fn builder() -> SuperScriptBuilder
pub fn builder() -> SuperScriptBuilder
Create a new builder
source§impl SuperScript
impl SuperScript
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
source§impl SuperScript
impl SuperScript
sourcepub fn children(&self) -> &[SuperScriptChild]
pub fn children(&self) -> &[SuperScriptChild]
Access the element’s children
sourcepub fn children_mut(&mut self) -> &mut Vec<SuperScriptChild>
pub fn children_mut(&mut self) -> &mut Vec<SuperScriptChild>
Mutably access the element’s children
Trait Implementations§
source§impl Clone for SuperScript
impl Clone for SuperScript
source§fn clone(&self) -> SuperScript
fn clone(&self) -> SuperScript
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SuperScript
impl Debug for SuperScript
source§impl Default for SuperScript
impl Default for SuperScript
source§fn default() -> SuperScript
fn default() -> SuperScript
source§impl Display for SuperScript
impl Display for SuperScript
source§impl From<SuperScript> for AbbreviationChild
impl From<SuperScript> for AbbreviationChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for AddressChild
impl From<SuperScript> for AddressChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for ArticleChild
impl From<SuperScript> for ArticleChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for AsideChild
impl From<SuperScript> for AsideChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for BidirectionalIsolateChild
impl From<SuperScript> for BidirectionalIsolateChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for BidirectionalTextOverrideChild
impl From<SuperScript> for BidirectionalTextOverrideChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for BlockQuoteChild
impl From<SuperScript> for BlockQuoteChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for BoldChild
impl From<SuperScript> for BoldChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for ButtonChild
impl From<SuperScript> for ButtonChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for CiteChild
impl From<SuperScript> for CiteChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for CodeChild
impl From<SuperScript> for CodeChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for DataChild
impl From<SuperScript> for DataChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for DefinitionChild
impl From<SuperScript> for DefinitionChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for DialogChild
impl From<SuperScript> for DialogChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for DivisionChild
impl From<SuperScript> for DivisionChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for EmphasisChild
impl From<SuperScript> for EmphasisChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for FormChild
impl From<SuperScript> for FormChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for HeaderChild
impl From<SuperScript> for HeaderChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for Heading1Child
impl From<SuperScript> for Heading1Child
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for Heading2Child
impl From<SuperScript> for Heading2Child
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for Heading3Child
impl From<SuperScript> for Heading3Child
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for Heading4Child
impl From<SuperScript> for Heading4Child
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for Heading5Child
impl From<SuperScript> for Heading5Child
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for Heading6Child
impl From<SuperScript> for Heading6Child
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for ItalicChild
impl From<SuperScript> for ItalicChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for KeyboardInputChild
impl From<SuperScript> for KeyboardInputChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for LabelChild
impl From<SuperScript> for LabelChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for MainChild
impl From<SuperScript> for MainChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for MarkTextChild
impl From<SuperScript> for MarkTextChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for MeterChild
impl From<SuperScript> for MeterChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for OutputChild
impl From<SuperScript> for OutputChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for ParagraphChild
impl From<SuperScript> for ParagraphChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for PreformattedTextChild
impl From<SuperScript> for PreformattedTextChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for ProgressChild
impl From<SuperScript> for ProgressChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for QuotationChild
impl From<SuperScript> for QuotationChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for SampleOutputChild
impl From<SuperScript> for SampleOutputChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for SectionChild
impl From<SuperScript> for SectionChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for SideCommentChild
impl From<SuperScript> for SideCommentChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for SpanChild
impl From<SuperScript> for SpanChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for StrikeThroughChild
impl From<SuperScript> for StrikeThroughChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for StrongChild
impl From<SuperScript> for StrongChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for SubScriptChild
impl From<SuperScript> for SubScriptChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for SuperScript
impl From<SuperScript> for SuperScript
source§fn from(sys: SuperScript) -> Self
fn from(sys: SuperScript) -> Self
source§impl From<SuperScript> for SuperScriptChild
impl From<SuperScript> for SuperScriptChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for TimeChild
impl From<SuperScript> for TimeChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for UnderlineChild
impl From<SuperScript> for UnderlineChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl From<SuperScript> for VariableChild
impl From<SuperScript> for VariableChild
source§fn from(value: SuperScript) -> Self
fn from(value: SuperScript) -> Self
source§impl Into<SuperScript> for SuperScript
impl Into<SuperScript> for SuperScript
source§fn into(self) -> SuperScript
fn into(self) -> SuperScript
source§impl PartialEq<SuperScript> for SuperScript
impl PartialEq<SuperScript> for SuperScript
source§fn eq(&self, other: &SuperScript) -> bool
fn eq(&self, other: &SuperScript) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SuperScript> for SuperScript
impl PartialOrd<SuperScript> for SuperScript
source§fn partial_cmp(&self, other: &SuperScript) -> Option<Ordering>
fn partial_cmp(&self, other: &SuperScript) -> 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