pub struct TextChunk {
pub x: Option<NumberList>,
pub y: Option<NumberList>,
pub dx: Option<NumberList>,
pub dy: Option<NumberList>,
pub anchor: TextAnchor,
pub spans: Vec<TextSpan>,
}
Expand description
A text chunk.
Contains position and anchor of the next text chunk.
Doesn’t represented in SVG directly. Usually, it’s a first tspan
or text node
and any tspan
that defines either x
or y
coordinates.
Fields
x: Option<NumberList>
A list of absolute positions along the X-axis.
y: Option<NumberList>
A list of absolute positions along the Y-axis.
dx: Option<NumberList>
A list of relative positions along the X-axis.
dy: Option<NumberList>
A list of relative positions along the Y-axis.
anchor: TextAnchor
A text anchor/align.
spans: Vec<TextSpan>
A list of text spans.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TextChunk
impl Send for TextChunk
impl Sync for TextChunk
impl Unpin for TextChunk
impl UnwindSafe for TextChunk
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more