pub enum MediaKind {
Image,
Video,
Audio,
}Expand description
What a block-level media placeholder actually is, so a frontend knows which widget to build over the reserved rows: a raster, a movie player, or a transport with no picture at all. Core classifies and stops there — it opens nothing, so this is a statement about the markup, not about a file it has verified exists or can decode.
Variants§
Image
A  / <img> / <picture> — a still picture.
Video
An HTML <video>. Markdown and Djot spell no video of their own, so this
only ever arrives through html_elements promotion (or a ::video{…}
directive a host app maps itself, which core reports as a directive).
Audio
An HTML <audio> — a transport with no picture, so a frontend gives it a
fixed control height rather than measuring an aspect ratio.
Trait Implementations§
impl Copy for MediaKind
impl Eq for MediaKind
impl StructuralPartialEq for MediaKind
Auto Trait Implementations§
impl Freeze for MediaKind
impl RefUnwindSafe for MediaKind
impl Send for MediaKind
impl Sync for MediaKind
impl Unpin for MediaKind
impl UnsafeUnpin for MediaKind
impl UnwindSafe for MediaKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more