pub struct Element { /* private fields */ }Expand description
HTML element structure
Implementations§
Source§impl Element
impl Element
Sourcepub fn inner_html(&self) -> String
pub fn inner_html(&self) -> String
Get element inner HTML
Sourcepub fn text_contains(&self, text: &str) -> bool
pub fn text_contains(&self, text: &str) -> bool
Check if text contains specified string
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Check if element has disabled attribute
Sourcepub fn is_required(&self) -> bool
pub fn is_required(&self) -> bool
Check if element has required attribute
Sourcepub fn is_readonly(&self) -> bool
pub fn is_readonly(&self) -> bool
Check if element has readonly attribute
Sourcepub fn is_checked(&self) -> bool
pub fn is_checked(&self) -> bool
Check if element has checked attribute
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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