Object

Trait Object 

Source
pub trait Object: WithAttribute {
    // Provided methods
    fn data(self, data: impl Into<Cow<'static, str>>) -> Self::Output<Data> { ... }
    fn type(self, type: impl Into<Cow<'static, str>>) -> Self::Output<Type> { ... }
    fn name(self, name: impl Into<Cow<'static, str>>) -> Self::Output<Name> { ... }
    fn form(self, form: impl Into<Cow<'static, str>>) -> Self::Output<Form> { ... }
    fn width(self, width: u32) -> Self::Output<Width> { ... }
    fn height(self, height: u32) -> Self::Output<Height> { ... }
}
Expand description

The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image or as a child navigable.

Provided Methods§

Source

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

Address of the resource.

Source

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

Type of embedded resource.

Source

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

Name of content navigable.

Source

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

Associates the element with a super::form element.

Source

fn width(self, width: u32) -> Self::Output<Width>

Horizontal dimension.

Source

fn height(self, height: u32) -> Self::Output<Height>

Vertical dimension.

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> Object for Html<Object, A, V>