Struct svg::node::element::Description
[−]
[src]
pub struct Description { /* fields omitted */ }A [desc][1] element.
[1]: https://www.w3.org/TR/SVG/struct.html#DescElement
Methods
impl Description[src]
impl Descriptionimpl Description[src]
impl Descriptionpub fn add<T>(self, node: T) -> Self where
T: Node, [src]
pub fn add<T>(self, node: T) -> Self where
T: Node, Append a node.
pub fn set<T, U>(self, name: T, value: U) -> Self where
T: Into<String>,
U: Into<Value>, [src]
pub fn set<T, U>(self, name: T, value: U) -> Self where
T: Into<String>,
U: Into<Value>, Assign an attribute.
Trait Implementations
impl Clone for Description[src]
impl Clone for Descriptionfn clone(&self) -> Description[src]
fn clone(&self) -> DescriptionReturns 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 Debug for Description[src]
impl Debug for Descriptionfn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Node for Description[src]
impl Node for Descriptionfn append<T>(&mut self, node: T) where
T: Node, [src]
fn append<T>(&mut self, node: T) where
T: Node, Append a child node.
fn assign<T, U>(&mut self, name: T, value: U) where
T: Into<String>,
U: Into<Value>, [src]
fn assign<T, U>(&mut self, name: T, value: U) where
T: Into<String>,
U: Into<Value>, Assign an attribute.
impl Display for Description[src]
impl Display for DescriptionAuto Trait Implementations
impl !Send for Description
impl !Send for Descriptionimpl !Sync for Description
impl !Sync for Description