Trait usvg_parser::TreeParsing
source · pub trait TreeParsing: Sized {
// Required methods
fn from_data(data: &[u8], opt: &Options) -> Result<Self, Error>;
fn from_str(text: &str, opt: &Options) -> Result<Self, Error>;
fn from_xmltree(doc: &Document<'_>, opt: &Options) -> Result<Self, Error>;
}
Expand description
A trait to parse usvg_tree::Tree
from various sources.
Required Methods§
Object Safety§
This trait is not object safe.