Struct stdweb::web::TextMetrics [] [src]

pub struct TextMetrics(_);

The TextMetrics struct represents the dimension of a text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.

(JavaScript docs)

Methods

impl TextMetrics
[src]

[src]

Contains the text's advance width (the width of that inline box) in CSS pixels.

(JavaScript docs)

Trait Implementations

impl Clone for TextMetrics
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for TextMetrics
[src]

[src]

Formats the value using the given formatter. Read more

impl InstanceOf for TextMetrics
[src]

[src]

Checks whenever a given Reference if of type Self.

impl AsRef<Reference> for TextMetrics
[src]

[src]

Performs the conversion.

impl ReferenceType for TextMetrics
[src]

[src]

Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more

impl From<TextMetrics> for Reference
[src]

[src]

Performs the conversion.

impl TryFrom<TextMetrics> for Reference
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Reference> for TextMetrics
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl<'_r> TryFrom<&'_r Reference> for TextMetrics
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Value> for TextMetrics
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl<'_r> TryFrom<&'_r Value> for TextMetrics
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl JsSerialize for TextMetrics
[src]

Auto Trait Implementations

impl Send for TextMetrics

impl Sync for TextMetrics