#[repr(C)]pub struct Xml {
pub root: XmlNodeChildVec,
}Fields§
§root: XmlNodeChildVecImplementations§
Source§impl Xml
impl Xml
Sourcepub fn scan_external_resources(&self) -> ExternalResourceVec
pub fn scan_external_resources(&self) -> ExternalResourceVec
Scan the XML/HTML document for external resource URLs.
This function traverses the entire document tree and extracts URLs from:
<img src="...">- Images<link href="...">- Stylesheets, icons, fonts<script src="...">- Scripts<video src="...">,<source src="...">- Video<audio src="...">- Audio<a href="...">- Links (classified as Unknown)- CSS
url()in style attributes <style>blocks with @import or url()
Trait Implementations§
Source§impl PartialOrd for Xml
impl PartialOrd for Xml
impl StructuralPartialEq for Xml
Auto Trait Implementations§
impl Freeze for Xml
impl RefUnwindSafe for Xml
impl Send for Xml
impl Sync for Xml
impl Unpin for Xml
impl UnsafeUnpin for Xml
impl UnwindSafe for Xml
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more