Struct html_sys::embedded::MediaSource
source · #[non_exhaustive]pub struct MediaSource {
pub type_: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <source>
element
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type_: Option<Cow<'static, str>>
Type of embedded resource
Trait Implementations§
source§impl Clone for MediaSource
impl Clone for MediaSource
source§fn clone(&self) -> MediaSource
fn clone(&self) -> MediaSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MediaSource
impl Debug for MediaSource
source§impl Default for MediaSource
impl Default for MediaSource
source§fn default() -> MediaSource
fn default() -> MediaSource
Returns the “default value” for a type. Read more
source§impl Deref for MediaSource
impl Deref for MediaSource
source§impl DerefMut for MediaSource
impl DerefMut for MediaSource
source§impl Display for MediaSource
impl Display for MediaSource
source§impl PartialEq<MediaSource> for MediaSource
impl PartialEq<MediaSource> for MediaSource
source§fn eq(&self, other: &MediaSource) -> bool
fn eq(&self, other: &MediaSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MediaSource> for MediaSource
impl PartialOrd<MediaSource> for MediaSource
source§fn partial_cmp(&self, other: &MediaSource) -> Option<Ordering>
fn partial_cmp(&self, other: &MediaSource) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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