#[non_exhaustive]
pub struct FigureCaption { /* private fields */ }
Expand description

The HTML <figcaption> element

MDN Documentation

Implementations§

source§

impl FigureCaption

source

pub fn builder() -> FigureCaptionBuilder

Create a new builder

source§

impl FigureCaption

source

pub fn access_key(&self) -> Option<&str>

Get the value of the accesskey attribute

source

pub fn set_access_key(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the accesskey attribute

source

pub fn auto_capitalize(&self) -> Option<&str>

Get the value of the autocapitalize attribute

source

pub fn set_auto_capitalize( &mut self, value: Option<impl Into<Cow<'static, str>>> )

Set the value of the autocapitalize attribute

source

pub fn autofocus(&self) -> bool

Get the value of the autofocus attribute

source

pub fn set_autofocus(&mut self, value: bool)

Set the value of the autofocus attribute

source

pub fn class(&self) -> Option<&str>

Get the value of the class attribute

source

pub fn set_class(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the class attribute

source

pub fn content_editable(&self) -> Option<&str>

Get the value of the contenteditable attribute

source

pub fn set_content_editable( &mut self, value: Option<impl Into<Cow<'static, str>>> )

Set the value of the contenteditable attribute

source

pub fn direction(&self) -> Option<&str>

Get the value of the dir attribute

source

pub fn set_direction(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the dir attribute

source

pub fn draggable(&self) -> bool

Get the value of the draggable attribute

source

pub fn set_draggable(&mut self, value: bool)

Set the value of the draggable attribute

source

pub fn enter_key_hint(&self) -> Option<&str>

Get the value of the enterkeyhint attribute

source

pub fn set_enter_key_hint( &mut self, value: Option<impl Into<Cow<'static, str>>> )

Set the value of the enterkeyhint attribute

source

pub fn export_parts(&self) -> Option<&str>

Get the value of the exportparts attribute

source

pub fn set_export_parts(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the exportparts attribute

source

pub fn hidden(&self) -> Option<&str>

Get the value of the hidden attribute

source

pub fn set_hidden(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the hidden attribute

source

pub fn id(&self) -> Option<&str>

Get the value of the id attribute

source

pub fn set_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the id attribute

source

pub fn inert(&self) -> bool

Get the value of the inert attribute

source

pub fn set_inert(&mut self, value: bool)

Set the value of the inert attribute

source

pub fn input_mode(&self) -> Option<&str>

Get the value of the inputmode attribute

source

pub fn set_input_mode(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the inputmode attribute

source

pub fn is_(&self) -> Option<&str>

Get the value of the is attribute

source

pub fn set_is_(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the is attribute

source

pub fn item_id(&self) -> Option<&str>

Get the value of the itemid attribute

source

pub fn set_item_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the itemid attribute

source

pub fn item_prop(&self) -> Option<&str>

Get the value of the itemprop attribute

source

pub fn set_item_prop(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the itemprop attribute

source

pub fn item_ref(&self) -> Option<&str>

Get the value of the itemref attribute

source

pub fn set_item_ref(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the itemref attribute

source

pub fn item_scope(&self) -> Option<&str>

Get the value of the itemscope attribute

source

pub fn set_item_scope(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the itemscope attribute

source

pub fn item_type(&self) -> Option<&str>

Get the value of the itemtype attribute

source

pub fn set_item_type(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the itemtype attribute

source

pub fn lang(&self) -> Option<&str>

Get the value of the lang attribute

source

pub fn set_lang(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the lang attribute

source

pub fn nonce(&self) -> Option<&str>

Get the value of the nonce attribute

source

pub fn set_nonce(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the nonce attribute

source

pub fn part(&self) -> Option<&str>

Get the value of the part attribute

source

pub fn set_part(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the part attribute

source

pub fn slot(&self) -> Option<&str>

Get the value of the slot attribute

source

pub fn set_slot(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the slot attribute

source

pub fn spellcheck(&self) -> Option<&str>

Get the value of the spellcheck attribute

source

pub fn set_spellcheck(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the spellcheck attribute

source

pub fn style(&self) -> Option<&str>

Get the value of the style attribute

source

pub fn set_style(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the style attribute

source

pub fn tab_index(&self) -> Option<i64>

Get the value of the tabindex attribute

source

pub fn set_tab_index(&mut self, value: Option<i64>)

Set the value of the tabindex attribute

source

pub fn title(&self) -> Option<&str>

Get the value of the title attribute

source

pub fn set_title(&mut self, value: Option<impl Into<Cow<'static, str>>>)

Set the value of the title attribute

source

pub fn translate(&self) -> bool

Get the value of the translate attribute

source

pub fn set_translate(&mut self, value: bool)

Set the value of the translate attribute

source§

impl FigureCaption

source

pub fn children(&self) -> &[FigureCaptionChild]

Access the element’s children

source

pub fn children_mut(&mut self) -> &mut Vec<FigureCaptionChild>

Mutably access the element’s children

Trait Implementations§

source§

impl Clone for FigureCaption

source§

fn clone(&self) -> FigureCaption

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FigureCaption

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FigureCaption

source§

fn default() -> FigureCaption

Returns the “default value” for a type. Read more
source§

impl Display for FigureCaption

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<FigureCaption> for FigureCaption

source§

fn from(sys: FigureCaption) -> Self

Converts to this type from the input type.
source§

impl Into<FigureCaption> for FigureCaption

source§

fn into(self) -> FigureCaption

Converts this type into the (usually inferred) input type.
source§

impl PartialEq<FigureCaption> for FigureCaption

source§

fn eq(&self, other: &FigureCaption) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<FigureCaption> for FigureCaption

source§

fn partial_cmp(&self, other: &FigureCaption) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl HtmlElement for FigureCaption

source§

impl StructuralPartialEq for FigureCaption

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.