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) -> HTMLDataProvider
Trait Implementations§
Source§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) -> 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