Struct usvg::Opacity [] [src]

pub struct Opacity(_);

An opacity value.

Just like f64 but immutable and asserts in debug if value is out of 0..1 range.

Methods

impl Opacity
[src]

[src]

Creates a new opacity value.

[src]

Returns an underlying value.

Methods from Deref<Target = f64>

Trait Implementations

impl Clone for Opacity
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Opacity
[src]

impl PartialEq for Opacity
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Opacity
[src]

[src]

Formats the value using the given formatter. Read more

impl From<f64> for Opacity
[src]

[src]

Performs the conversion.

impl Deref for Opacity
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

Auto Trait Implementations

impl Send for Opacity

impl Sync for Opacity