logo
pub struct Text(_);
Expand description

Text layout object.

Implementations

Create a text layout object on top of a host element.

Create a text layout object on top of a host element with the specified class attribute.

Create a text layout object on top of a host element with the specified style attribute.

Sets the box width and height of the text object.

Returns metrics of the text layout object.

Trait Implementations

Copies text object.

All allocated objects are reference counted so copying is just a matter of increasing reference counts.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Destroy pointed text object.

Executes the destructor for this type. Read more

Store the Text object as a Value.

Performs the conversion.

Get a Text object contained in the Value.

Converts value to specified type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.