struct LinkExtractor {
links: RefCell<Vec<RawUri>>,
include_verbatim: bool,
current_verbatim_element_name: RefCell<Option<String>>,
in_style_tag: RefCell<bool>,
style_content: RefCell<String>,
}Fields§
§links: RefCell<Vec<RawUri>>§include_verbatim: bool§current_verbatim_element_name: RefCell<Option<String>>§in_style_tag: RefCell<bool>Whether we’re currently inside a <style> tag.
style_content: RefCell<String>Accumulated CSS content from within a <style> tag.
Implementations§
Source§impl LinkExtractor
impl LinkExtractor
pub(crate) const fn new(include_verbatim: bool) -> Self
fn process_tag(&self, _: Tag, line_number: usize) -> TokenSinkResult<()>
Trait Implementations§
Source§impl Clone for LinkExtractor
impl Clone for LinkExtractor
Source§fn clone(&self) -> LinkExtractor
fn clone(&self) -> LinkExtractor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl TokenSink for LinkExtractor
impl TokenSink for LinkExtractor
Source§fn process_token(&self, token: Token, line_number: u64) -> TokenSinkResult<()>
fn process_token(&self, token: Token, line_number: u64) -> TokenSinkResult<()>
Process a token.
Source§fn adjusted_current_node_present_but_not_in_html_namespace(&self) -> bool
fn adjusted_current_node_present_but_not_in_html_namespace(&self) -> bool
Used in the markup declaration open state. By default, this always
returns false and thus all CDATA sections are tokenized as bogus
comments.
Auto Trait Implementations§
impl !Freeze for LinkExtractor
impl !RefUnwindSafe for LinkExtractor
impl Send for LinkExtractor
impl !Sync for LinkExtractor
impl Unpin for LinkExtractor
impl UnsafeUnpin for LinkExtractor
impl UnwindSafe for LinkExtractor
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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