Area

Trait Area 

Source
pub trait Area: WithAttribute {
Show 14 methods // Provided methods fn alt(self, alt: impl Into<Cow<'static, str>>) -> Self::Output<Alt> { ... } fn coords( self, coords: impl Into<Cow<'static, str>>, ) -> Self::Output<Coords> { ... } fn shape(self, shape: Shape) -> Self::Output<Shape> { ... } fn href(self, href: impl Into<Cow<'static, str>>) -> Self::Output<Href> { ... } fn target( self, target: impl Into<Cow<'static, str>>, ) -> Self::Output<Target> { ... } fn target_blank(self) -> Self::Output<Target> { ... } fn target_parent(self) -> Self::Output<Target> { ... } fn target_top(self) -> Self::Output<Target> { ... } fn download_filename( self, download: impl Into<Cow<'static, str>>, ) -> Self::Output<Download> { ... } fn download(self) -> Self::Output<Download> { ... } fn ping(self, ping: impl Into<Cow<'static, str>>) -> Self::Output<Ping> { ... } fn rel(self, rel: impl Into<SpaceSeparated<Rel>>) -> Self::Output<RelList> { ... } fn append_rel(self, rel: Rel) -> Self::Output<RelList> { ... } fn referrer_policy( self, referrer_policy: ReferrerPolicy, ) -> Self::Output<ReferrerPolicy> { ... }
}
Expand description

The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map.

Provided Methods§

Source

fn alt(self, alt: impl Into<Cow<'static, str>>) -> Self::Output<Alt>

Replacement text for use when images are not available.

Source

fn coords(self, coords: impl Into<Cow<'static, str>>) -> Self::Output<Coords>

Coordinates for the shape to be created in an image map.

Source

fn shape(self, shape: Shape) -> Self::Output<Shape>

The kind of shape to be created in an image map.

Source

fn href(self, href: impl Into<Cow<'static, str>>) -> Self::Output<Href>

Address of the hyperlink.

Source

fn target(self, target: impl Into<Cow<'static, str>>) -> Self::Output<Target>

The browsing context the link should be opened in.

Source

fn target_blank(self) -> Self::Output<Target>

Try to open the link in a new tab.

Source

fn target_parent(self) -> Self::Output<Target>

Open the link in the parent browsing context.

Source

fn target_top(self) -> Self::Output<Target>

Open the link in the topmost browsing context.

Source

fn download_filename( self, download: impl Into<Cow<'static, str>>, ) -> Self::Output<Download>

Treat the linked URL as a download with the specified filename.

Source

fn download(self) -> Self::Output<Download>

Treat the linked URL as a download and let the browser suggest a filename.

Source

fn ping(self, ping: impl Into<Cow<'static, str>>) -> Self::Output<Ping>

A space-separated list of URLs the browser will send POST requests (with the body PING) when the link is followed (typically used for tracking).

Source

fn rel(self, rel: impl Into<SpaceSeparated<Rel>>) -> Self::Output<RelList>

Relationship between the location in the document containing the hyperlink and the destination resource.

Source

fn append_rel(self, rel: Rel) -> Self::Output<RelList>

Appends a Rel to the link.

Source

fn referrer_policy( self, referrer_policy: ReferrerPolicy, ) -> Self::Output<ReferrerPolicy>

How much referrer information to send.

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.

Implementors§

Source§

impl<A: Attributes, V: 'static> Area for Html<Area, A, V>