[][src]Struct moxie_dom::elements::embedding::EmbedBuilder

#[must_use = "needs to be built"]pub struct EmbedBuilder { /* fields omitted */ }

The HTML <embed> element embeds external content at the specified point in the document. This content is provided by an external application or other source of interactive content such as a browser plug-in.

A type for initializing the element's attributes before calling build.

Implementations

impl EmbedBuilder[src]

pub fn build(self) -> Embed[src]

Initialize the element with all of the attributes so far.

impl EmbedBuilder[src]

pub fn height(self, to_set: impl ToString) -> Self[src]

The displayed height of the resource, in CSS pixels. This must be an absolute value; percentages are not allowed.

pub fn src(self, to_set: impl ToString) -> Self[src]

The URL of the resource being embedded.

pub fn type_(self, to_set: impl ToString) -> Self[src]

The MIME type to use to select the plug-in to instantiate.

pub fn width(self, to_set: impl ToString) -> Self[src]

The displayed width of the resource, in CSS pixels. This must be an absolute value; percentages are not allowed.

Trait Implementations

impl Element for EmbedBuilder[src]

impl<E> EventTarget<E> for EmbedBuilder where
    E: GlobalEvent
[src]

impl GlobalEventHandler for EmbedBuilder[src]

impl HtmlElement for EmbedBuilder[src]

impl Node for EmbedBuilder[src]

Auto Trait Implementations

impl !RefUnwindSafe for EmbedBuilder

impl !Send for EmbedBuilder

impl !Sync for EmbedBuilder

impl Unpin for EmbedBuilder

impl !UnwindSafe for EmbedBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<N> Child for N where
    N: Node
[src]

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.