pub struct Style<'p> { /* private fields */ }Expand description
<style>: Style Information SVG element
Implementations§
Source§impl<'p> Style<'p>
<style> items
impl<'p> Style<'p>
<style> items
Sourcepub fn linear_gradient(&mut self) -> LinearGradient<'_>
pub fn linear_gradient(&mut self) -> LinearGradient<'_>
Add LinearGradient child element
Sourcepub fn radial_gradient(&mut self) -> RadialGradient<'_>
pub fn radial_gradient(&mut self) -> RadialGradient<'_>
Add RadialGradient child element
Sourcepub fn foreign_object(&mut self) -> ForeignObject<'_>
pub fn foreign_object(&mut self) -> ForeignObject<'_>
Add ForeignObject child element
Sourcepub fn animate_motion(&mut self) -> AnimateMotion<'_>
pub fn animate_motion(&mut self) -> AnimateMotion<'_>
Add AnimateMotion child element
Sourcepub fn animate_transform(&mut self) -> AnimateTransform<'_>
pub fn animate_transform(&mut self) -> AnimateTransform<'_>
Add AnimateTransform child element
Sourcepub fn cdata<'a, V>(&mut self, text: V) -> &mut Self
pub fn cdata<'a, V>(&mut self, text: V) -> &mut Self
Add character data content
These characters will be replaced with entities:
| Char | Entity |
|---|---|
& | & |
< | < |
> | > |
Sourcepub fn cdata_len<'a, V>(&mut self, text: V, len: usize) -> &mut Self
pub fn cdata_len<'a, V>(&mut self, text: V, len: usize) -> &mut Self
Add character data content with a maximum character limit
| Char | Entity |
|---|---|
& | & |
< | < |
> | > |
Sourcepub fn comment<'v, V>(&mut self, com: V) -> &mut Self
pub fn comment<'v, V>(&mut self, com: V) -> &mut Self
Add a comment
These characters will be replaced with entities:
| Char | Entity |
|---|---|
- | ‐ |
< | > |
> | < |
Auto Trait Implementations§
impl<'p> Freeze for Style<'p>
impl<'p> RefUnwindSafe for Style<'p>
impl<'p> Send for Style<'p>
impl<'p> Sync for Style<'p>
impl<'p> Unpin for Style<'p>
impl<'p> !UnwindSafe for Style<'p>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more