[−][src]Enum svgdom::AttributeValue
Value of the SVG attribute.
Variants
None
Inherit
CurrentColor
AspectRatio(AspectRatio)
Color(Color)
FuncLink(Node)
FuncIRI
Paint(Node, Option<PaintFallback>)
Length(Length)
LengthList(LengthList)
Angle(Angle)
Link(Node)
IRI
Number(f64)
NumberList(NumberList)
Path(Path)
Points(Points)
Transform(Transform)
ViewBox(ViewBox)
String(String)
Methods
impl AttributeValue
[src]
pub fn is_none(&self) -> bool
[src]
pub fn is_inherit(&self) -> bool
[src]
pub fn is_current_color(&self) -> bool
[src]
pub fn is_aspect_ratio(&self) -> bool
[src]
pub fn is_color(&self) -> bool
[src]
pub fn is_length(&self) -> bool
[src]
pub fn is_length_list(&self) -> bool
[src]
pub fn is_angle(&self) -> bool
[src]
pub fn is_link(&self) -> bool
[src]
pub fn is_func_link(&self) -> bool
[src]
pub fn is_paint(&self) -> bool
[src]
pub fn is_number(&self) -> bool
[src]
pub fn is_number_list(&self) -> bool
[src]
pub fn is_path(&self) -> bool
[src]
pub fn is_points(&self) -> bool
[src]
pub fn is_string(&self) -> bool
[src]
pub fn is_transform(&self) -> bool
[src]
pub fn is_viewbox(&self) -> bool
[src]
pub fn is_link_container(&self) -> bool
[src]
Checks that the current attribute value contains a Node
.
E.g. Link
, FuncLink
and Paint
.
pub fn default_value(id: AttributeId) -> Option<AttributeValue>
[src]
Constructs a new attribute value with a default value, if it's known.
Trait Implementations
impl WriteBuffer for AttributeValue
[src]
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
[src]
fn write_buf(&self, buf: &mut Vec<u8>)
[src]
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]
Self: Sized,
Returns an object that implements fmt::Display
using provided write options.
impl PartialEq<AttributeValue> for AttributeValue
[src]
fn eq(&self, other: &AttributeValue) -> bool
[src]
fn ne(&self, other: &AttributeValue) -> bool
[src]
impl From<AspectRatio> for AttributeValue
[src]
fn from(value: AspectRatio) -> Self
[src]
impl From<Color> for AttributeValue
[src]
impl From<Length> for AttributeValue
[src]
impl From<LengthList> for AttributeValue
[src]
fn from(value: LengthList) -> Self
[src]
impl From<Angle> for AttributeValue
[src]
impl From<f64> for AttributeValue
[src]
impl From<NumberList> for AttributeValue
[src]
fn from(value: NumberList) -> Self
[src]
impl From<Path> for AttributeValue
[src]
impl From<Points> for AttributeValue
[src]
impl From<String> for AttributeValue
[src]
impl From<Transform> for AttributeValue
[src]
impl From<ViewBox> for AttributeValue
[src]
impl<'a> From<&'a str> for AttributeValue
[src]
impl From<i32> for AttributeValue
[src]
impl From<(i32, LengthUnit)> for AttributeValue
[src]
impl From<(f64, LengthUnit)> for AttributeValue
[src]
impl From<PaintFallback> for AttributeValue
[src]
fn from(value: PaintFallback) -> Self
[src]
impl Clone for AttributeValue
[src]
fn clone(&self) -> AttributeValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for AttributeValue
[src]
impl Debug for AttributeValue
[src]
Auto Trait Implementations
impl !Send for AttributeValue
impl !Sync for AttributeValue
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,