Struct html::inline_text::Code
source · #[non_exhaustive]pub struct Code { /* private fields */ }Expand description
The HTML <code> element
Implementations§
source§impl Code
impl Code
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 From<Code> for AbbreviationChild
impl From<Code> for AbbreviationChild
source§impl From<Code> for AddressChild
impl From<Code> for AddressChild
source§impl From<Code> for ArticleChild
impl From<Code> for ArticleChild
source§impl From<Code> for AsideChild
impl From<Code> for AsideChild
source§impl From<Code> for BidirectionalIsolateChild
impl From<Code> for BidirectionalIsolateChild
source§impl From<Code> for BidirectionalTextOverrideChild
impl From<Code> for BidirectionalTextOverrideChild
source§impl From<Code> for BlockQuoteChild
impl From<Code> for BlockQuoteChild
source§impl From<Code> for ButtonChild
impl From<Code> for ButtonChild
source§impl From<Code> for DefinitionChild
impl From<Code> for DefinitionChild
source§impl From<Code> for DialogChild
impl From<Code> for DialogChild
source§impl From<Code> for DivisionChild
impl From<Code> for DivisionChild
source§impl From<Code> for EmphasisChild
impl From<Code> for EmphasisChild
source§impl From<Code> for HeaderChild
impl From<Code> for HeaderChild
source§impl From<Code> for Heading1Child
impl From<Code> for Heading1Child
source§impl From<Code> for Heading2Child
impl From<Code> for Heading2Child
source§impl From<Code> for Heading3Child
impl From<Code> for Heading3Child
source§impl From<Code> for Heading4Child
impl From<Code> for Heading4Child
source§impl From<Code> for Heading5Child
impl From<Code> for Heading5Child
source§impl From<Code> for Heading6Child
impl From<Code> for Heading6Child
source§impl From<Code> for ItalicChild
impl From<Code> for ItalicChild
source§impl From<Code> for KeyboardInputChild
impl From<Code> for KeyboardInputChild
source§impl From<Code> for LabelChild
impl From<Code> for LabelChild
source§impl From<Code> for MarkTextChild
impl From<Code> for MarkTextChild
source§impl From<Code> for MeterChild
impl From<Code> for MeterChild
source§impl From<Code> for OutputChild
impl From<Code> for OutputChild
source§impl From<Code> for ParagraphChild
impl From<Code> for ParagraphChild
source§impl From<Code> for PreformattedTextChild
impl From<Code> for PreformattedTextChild
source§impl From<Code> for ProgressChild
impl From<Code> for ProgressChild
source§impl From<Code> for QuotationChild
impl From<Code> for QuotationChild
source§impl From<Code> for SampleOutputChild
impl From<Code> for SampleOutputChild
source§impl From<Code> for SectionChild
impl From<Code> for SectionChild
source§impl From<Code> for SideCommentChild
impl From<Code> for SideCommentChild
source§impl From<Code> for StrikeThroughChild
impl From<Code> for StrikeThroughChild
source§impl From<Code> for StrongChild
impl From<Code> for StrongChild
source§impl From<Code> for SubScriptChild
impl From<Code> for SubScriptChild
source§impl From<Code> for SuperScriptChild
impl From<Code> for SuperScriptChild
source§impl From<Code> for UnderlineChild
impl From<Code> for UnderlineChild
source§impl From<Code> for VariableChild
impl From<Code> for VariableChild
source§impl PartialEq<Code> for Code
impl PartialEq<Code> for Code
source§impl PartialOrd<Code> for Code
impl PartialOrd<Code> for Code
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