Trait HtmlTrackAttributes
pub trait HtmlTrackAttributes: Sized + SetAttribute {
// Provided methods
fn default(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn kind(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn label(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn src(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn srclang(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
}
Expand description
Trait that provides attributes for the <track>
HTML element.
Provided Methods§
fn default(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn kind(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn label(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn src(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn srclang(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.