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