Struct usvg::tree::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]
pub fn new(n: f64) -> Self
[src]
Creates a new opacity value.
pub fn value(&self) -> f64
[src]
Returns an underlying value.
Methods from Deref<Target = f64>
Trait Implementations
impl Clone for Opacity
[src]
fn clone(&self) -> Opacity
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Opacity
[src]
impl PartialEq for Opacity
[src]
fn eq(&self, __arg_0: &Opacity) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Opacity) -> bool
[src]
This method tests for !=
.
impl Debug for Opacity
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more