[][src]Struct moxie_dom::elements::media::MapBuilder

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

The HTML <map> element is used with <area> elements to define an image map (a clickable link area).

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

Implementations

impl MapBuilder[src]

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

Initialize the element with all of the attributes so far.

impl MapBuilder[src]

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

The name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another element in the same document. If the id attribute is also specified, both attributes must have the same value.

Trait Implementations

impl Element for MapBuilder[src]

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

impl GlobalEventHandler for MapBuilder[src]

impl HtmlElement for MapBuilder[src]

impl Node for MapBuilder[src]

Auto Trait Implementations

impl !RefUnwindSafe for MapBuilder

impl !Send for MapBuilder

impl !Sync for MapBuilder

impl Unpin for MapBuilder

impl !UnwindSafe for MapBuilder

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> Instrument 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.