Struct svgdom::types::Color
[−]
[src]
pub struct Color { pub red: u8, pub green: u8, pub blue: u8, }
Representation of <color>
type.
Fields
red: u8
green: u8
blue: u8
Methods
impl Color
[src]
Trait Implementations
impl Clone for Color
[src]
fn clone(&self) -> Color
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Color
[src]
impl PartialEq for Color
[src]
fn eq(&self, __arg_0: &Color) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Color) -> bool
This method tests for !=
.
impl Debug for Color
[src]
impl FromStream for Color
[src]
type Err = ParseError
Error type.
fn from_stream(s: Stream) -> Result<Color, ParseError>
Parses data from Stream
.
fn from_data(data: &[u8]) -> Result<Self, Self::Err>
Parses data from &[u8]
.
impl WriteBuffer for Color
[src]
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
Writes data to Vec<u8>
buffer using specified WriteOptions.
fn write_buf(&self, buf: &mut Vec<u8>)
Writes data to Vec<u8>
buffer using default WriteOptions.
impl Display for Color
[src]
impl WriteToString for Color
[src]
fn to_string_with_opt(&self, opt: &WriteOptions) -> String
Writes data to String
using specified WriteOptions.