pub struct Text<'p> { /* private fields */ }Expand description
<text>: Text SVG element
Implementations§
Source§impl<'p> Text<'p>
<text> items
impl<'p> Text<'p>
<text> items
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 |
|---|---|
- | ‐ |
< | > |
> | < |
Sourcepub fn raw(&mut self, trusted: impl AsRef<str>) -> &mut Self
pub fn raw(&mut self, trusted: impl AsRef<str>) -> &mut Self
Add raw content
WARNING: trusted is used verbatim, with no escaping;
do not call with untrusted content.
Sourcepub fn length_adjust<'a, V>(&mut self, val: V) -> &mut Self
pub fn length_adjust<'a, V>(&mut self, val: V) -> &mut Self
Add lengthAdjust attribute
Sourcepub fn text_length<'a, V>(&mut self, val: V) -> &mut Self
pub fn text_length<'a, V>(&mut self, val: V) -> &mut Self
Add textLength attribute
Sourcepub fn text_anchor<'a, V>(&mut self, val: V) -> &mut Self
pub fn text_anchor<'a, V>(&mut self, val: V) -> &mut Self
Add text-anchor attribute
Sourcepub fn required_extensions<'a, V>(&mut self, val: V) -> &mut Self
pub fn required_extensions<'a, V>(&mut self, val: V) -> &mut Self
Add requiredExtensions attribute
Sourcepub fn system_language<'a, V>(&mut self, val: V) -> &mut Self
pub fn system_language<'a, V>(&mut self, val: V) -> &mut Self
Add systemLanguage attribute
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
Auto Trait Implementations§
impl<'p> Freeze for Text<'p>
impl<'p> RefUnwindSafe for Text<'p>
impl<'p> Send for Text<'p>
impl<'p> Sync for Text<'p>
impl<'p> Unpin for Text<'p>
impl<'p> !UnwindSafe for Text<'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