pub struct HTMLDataProvider { /* private fields */ }
Expand description
Built-in data provider that provides information for HTMLDataManager
Implementations§
Source§impl HTMLDataProvider
impl HTMLDataProvider
pub fn new( id: String, custom_data: HTMLDataV1, case_sensitive: bool, ) -> HTMLDataProvider
Trait Implementations§
Source§impl Clone for HTMLDataProvider
impl Clone for HTMLDataProvider
Source§fn clone(&self) -> HTMLDataProvider
fn clone(&self) -> HTMLDataProvider
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 IHTMLDataProvider for HTMLDataProvider
impl IHTMLDataProvider for HTMLDataProvider
Source§fn get_id(&self) -> &str
fn get_id(&self) -> &str
The ID of the data provider, which cannot be duplicated,
note that the ID of the built-in data provider is “html5”
fn is_applicable(&self, _language_id: &str) -> bool
fn provide_attributes( &self, tag: &str, _content: &HTMLDataProviderContent<'_>, ) -> Vec<&IAttributeData>
fn provide_values(&self, tag: &str, attribute: &str) -> Vec<&IValueData>
Auto Trait Implementations§
impl Freeze for HTMLDataProvider
impl RefUnwindSafe for HTMLDataProvider
impl Send for HTMLDataProvider
impl Sync for HTMLDataProvider
impl Unpin for HTMLDataProvider
impl UnwindSafe for HTMLDataProvider
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