pub struct SvgData {
pub intrinsic: Vec2,
pub tree: Tree,
pub id: u64,
pub source_bytes: usize,
}Expand description
Parsed SVG payload produced once at decode time and shared per-frame via Handle<SvgData> clones.
Fields§
§intrinsic: Vec2Native pixel size derived from the SVG viewBox / width / height.
tree: TreeThe parsed document, painted at frame time by the renderer.
id: u64Identity of this decode, unique for the life of the process. A renderer keys its cached
drawing of the SVG on it; see SvgData::next_id.
source_bytes: usizeRaw source-file length in bytes; budgeted by the LRU as a proxy for the parsed tree’s cost, which usvg does not expose, so eviction is not blind to SVG memory pressure.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SvgData
impl RefUnwindSafe for SvgData
impl Send for SvgData
impl Sync for SvgData
impl Unpin for SvgData
impl UnsafeUnpin for SvgData
impl UnwindSafe for SvgData
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.