pub struct LineBreakOpportunityBuilder { /* private fields */ }Expand description
A builder struct for LineBreakOpportunity
Implementations§
Source§impl LineBreakOpportunityBuilder
impl LineBreakOpportunityBuilder
Sourcepub fn build(&mut self) -> LineBreakOpportunity
pub fn build(&mut self) -> LineBreakOpportunity
Finish building the element
Sourcepub fn data(
&mut self,
data_key: impl Into<Cow<'static, str>>,
value: impl Into<Cow<'static, str>>,
) -> &mut LineBreakOpportunityBuilder
pub fn data( &mut self, data_key: impl Into<Cow<'static, str>>, value: impl Into<Cow<'static, str>>, ) -> &mut LineBreakOpportunityBuilder
Insert a data-* property
Sourcepub fn role(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn role(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the role attribute
Set the value of the aria-hidden attribute
Sourcepub fn access_key(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn access_key(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the accesskey attribute
Sourcepub fn auto_capitalize(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn auto_capitalize( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the autocapitalize attribute
Sourcepub fn class(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn class(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the class attribute
Sourcepub fn content_editable(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn content_editable( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the contenteditable attribute
Sourcepub fn direction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn direction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the dir attribute
Sourcepub fn enter_key_hint(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn enter_key_hint( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the enterkeyhint attribute
Sourcepub fn export_parts(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn export_parts(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the exportparts attribute
Set the value of the hidden attribute
Sourcepub fn id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the id attribute
Sourcepub fn input_mode(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn input_mode(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the inputmode attribute
Sourcepub fn is_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn is_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the is attribute
Sourcepub fn item_id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemid attribute
Sourcepub fn item_prop(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_prop(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemprop attribute
Sourcepub fn item_ref(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_ref(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemref attribute
Sourcepub fn item_scope(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_scope(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemscope attribute
Sourcepub fn item_type(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_type(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemtype attribute
Sourcepub fn lang(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn lang(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the lang attribute
Sourcepub fn nonce(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn nonce(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the nonce attribute
Sourcepub fn part(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn part(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the part attribute
Sourcepub fn slot(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn slot(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the slot attribute
Sourcepub fn spellcheck(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn spellcheck(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the spellcheck attribute
Sourcepub fn style(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn style(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the style attribute