Struct svgdom::Color
[−]
[src]
pub struct Color { pub red: u8, pub green: u8, pub blue: u8, }
Representation of the <color>
type.
Fields
red: u8
green: u8
blue: u8
Methods
impl Color
[src]
Trait Implementations
impl From<Color> for AttributeValue
[src]
fn from(value: Color) -> AttributeValue
[src]
Performs the conversion.
impl Clone for Color
[src]
fn clone(&self) -> Color
[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 Color
[src]
impl PartialEq for Color
[src]
fn eq(&self, __arg_0: &Color) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Color) -> bool
[src]
This method tests for !=
.
impl Debug for Color
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl FromStr for Color
[src]
type Err = StreamError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Color, Self::Err>
[src]
Parses a string s
to return a value of this type. Read more
impl ParseFromSpan for Color
[src]
impl WriteBuffer for Color
[src]
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
[src]
Writes data to the Vec<u8>
buffer using specified WriteOptions
.
fn write_buf(&self, buf: &mut Vec<u8>)
[src]
Writes data to the Vec<u8>
buffer using default WriteOptions
.
impl Display for Color
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl ToStringWithOptions for Color
[src]
fn to_string_with_opt(&self, opt: &WriteOptions) -> String
[src]
Writes data to the String
using specified WriteOptions
.