Enum svgdom::AttributeValue [−][src]
pub enum AttributeValue { None, Inherit, CurrentColor, AspectRatio(AspectRatio), Color(Color), FuncLink(Node), Paint(Node, Option<PaintFallback>), Length(Length), LengthList(LengthList), Link(Node), Number(f64), NumberList(NumberList), Path(Path), Points(Points), Transform(Transform), ViewBox(ViewBox), String(String), }
Value of the SVG attribute.
Variants
None
Inherit
CurrentColor
AspectRatio(AspectRatio)
Color(Color)
FuncLink(Node)
FuncIRI
Paint(Node, Option<PaintFallback>)
Length(Length)
LengthList(LengthList)
Link(Node)
IRI
Number(f64)
NumberList(NumberList)
Path(Path)
Points(Points)
Transform(Transform)
ViewBox(ViewBox)
String(String)
Methods
impl AttributeValue
[src]
impl AttributeValue
pub fn is_none(&self) -> bool
[src]
pub fn is_none(&self) -> bool
pub fn is_inherit(&self) -> bool
[src]
pub fn is_inherit(&self) -> bool
pub fn is_current_color(&self) -> bool
[src]
pub fn is_current_color(&self) -> bool
pub fn is_aspect_ratio(&self) -> bool
[src]
pub fn is_aspect_ratio(&self) -> bool
pub fn is_color(&self) -> bool
[src]
pub fn is_color(&self) -> bool
pub fn is_length(&self) -> bool
[src]
pub fn is_length(&self) -> bool
pub fn is_length_list(&self) -> bool
[src]
pub fn is_length_list(&self) -> bool
pub fn is_link(&self) -> bool
[src]
pub fn is_link(&self) -> bool
pub fn is_func_link(&self) -> bool
[src]
pub fn is_func_link(&self) -> bool
pub fn is_paint(&self) -> bool
[src]
pub fn is_paint(&self) -> bool
pub fn is_number(&self) -> bool
[src]
pub fn is_number(&self) -> bool
pub fn is_number_list(&self) -> bool
[src]
pub fn is_number_list(&self) -> bool
pub fn is_path(&self) -> bool
[src]
pub fn is_path(&self) -> bool
pub fn is_points(&self) -> bool
[src]
pub fn is_points(&self) -> bool
pub fn is_string(&self) -> bool
[src]
pub fn is_string(&self) -> bool
pub fn is_transform(&self) -> bool
[src]
pub fn is_transform(&self) -> bool
pub fn is_viewbox(&self) -> bool
[src]
pub fn is_viewbox(&self) -> bool
pub fn is_link_container(&self) -> bool
[src]
pub fn is_link_container(&self) -> bool
Checks that the current attribute value contains a Node
.
E.g. Link
, FuncLink
and Paint
.
pub fn default_value(id: AttributeId) -> Option<AttributeValue>
[src]
pub fn default_value(id: AttributeId) -> Option<AttributeValue>
Constructs a new attribute value with a default value, if it's known.
Trait Implementations
impl Clone for AttributeValue
[src]
impl Clone for AttributeValue
fn clone(&self) -> AttributeValue
[src]
fn clone(&self) -> AttributeValue
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for AttributeValue
[src]
impl PartialEq for AttributeValue
fn eq(&self, other: &AttributeValue) -> bool
[src]
fn eq(&self, other: &AttributeValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AttributeValue) -> bool
[src]
fn ne(&self, other: &AttributeValue) -> bool
This method tests for !=
.
impl Debug for AttributeValue
[src]
impl Debug for AttributeValue
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<AspectRatio> for AttributeValue
[src]
impl From<AspectRatio> for AttributeValue
fn from(value: AspectRatio) -> Self
[src]
fn from(value: AspectRatio) -> Self
Performs the conversion.
impl From<Color> for AttributeValue
[src]
impl From<Color> for AttributeValue
impl From<Length> for AttributeValue
[src]
impl From<Length> for AttributeValue
impl From<LengthList> for AttributeValue
[src]
impl From<LengthList> for AttributeValue
fn from(value: LengthList) -> Self
[src]
fn from(value: LengthList) -> Self
Performs the conversion.
impl From<f64> for AttributeValue
[src]
impl From<f64> for AttributeValue
impl From<NumberList> for AttributeValue
[src]
impl From<NumberList> for AttributeValue
fn from(value: NumberList) -> Self
[src]
fn from(value: NumberList) -> Self
Performs the conversion.
impl From<Path> for AttributeValue
[src]
impl From<Path> for AttributeValue
impl From<Points> for AttributeValue
[src]
impl From<Points> for AttributeValue
impl From<String> for AttributeValue
[src]
impl From<String> for AttributeValue
impl From<Transform> for AttributeValue
[src]
impl From<Transform> for AttributeValue
impl From<ViewBox> for AttributeValue
[src]
impl From<ViewBox> for AttributeValue
impl<'a> From<&'a str> for AttributeValue
[src]
impl<'a> From<&'a str> for AttributeValue
impl From<i32> for AttributeValue
[src]
impl From<i32> for AttributeValue
impl From<(i32, LengthUnit)> for AttributeValue
[src]
impl From<(i32, LengthUnit)> for AttributeValue
impl From<(f64, LengthUnit)> for AttributeValue
[src]
impl From<(f64, LengthUnit)> for AttributeValue
impl From<PaintFallback> for AttributeValue
[src]
impl From<PaintFallback> for AttributeValue
fn from(value: PaintFallback) -> Self
[src]
fn from(value: PaintFallback) -> Self
Performs the conversion.
impl WriteBuffer for AttributeValue
[src]
impl WriteBuffer for AttributeValue
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
[src]
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
Writes data to the Vec<u8>
buffer using specified WriteOptions
.
fn write_buf(&self, buf: &mut Vec<u8>)
[src]
fn write_buf(&self, buf: &mut Vec<u8>)
Writes data to the Vec<u8>
buffer using default WriteOptions
.
fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self> where
Self: Sized,
[src]
fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self> where
Self: Sized,
Returns an object that implements fmt::Display
using provided write options.
impl Display for AttributeValue
[src]
impl Display for AttributeValue
Auto Trait Implementations
impl !Send for AttributeValue
impl !Send for AttributeValue
impl !Sync for AttributeValue
impl !Sync for AttributeValue