pub struct State<'a> {
    pub(crate) parent_clip_path: Option<SvgNode<'a, 'a>>,
    pub(crate) parent_markers: Vec<SvgNode<'a, 'a>>,
    pub(crate) context_element: Option<(Option<Fill>, Option<Stroke>)>,
    pub(crate) fe_image_link: bool,
    pub(crate) view_box: NonZeroRect,
    pub(crate) use_size: (Option<f32>, Option<f32>),
    pub(crate) opt: &'a Options<'a>,
}Fields§
§parent_clip_path: Option<SvgNode<'a, 'a>>§parent_markers: Vec<SvgNode<'a, 'a>>§context_element: Option<(Option<Fill>, Option<Stroke>)>Stores the resolved fill and stroke of a use node or a path element (for markers)
fe_image_link: bool§view_box: NonZeroRectA viewBox of the parent SVG element.
use_size: (Option<f32>, Option<f32>)A size of the parent use element.
Used only during nested svg size resolving.
Width and height can be set independently.
opt: &'a Options<'a>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for State<'a>
impl<'a> !RefUnwindSafe for State<'a>
impl<'a> Send for State<'a>
impl<'a> Sync for State<'a>
impl<'a> Unpin for State<'a>
impl<'a> !UnwindSafe for State<'a>
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