pub struct Element { /* private fields */ }Expand description
HTML要素を表す構造体
Implementations§
Source§impl Element
impl Element
Sourcepub fn inner_html(&self) -> String
pub fn inner_html(&self) -> String
要素の内部HTMLを取得
Sourcepub fn text_contains(&self, text: &str) -> bool
pub fn text_contains(&self, text: &str) -> bool
テキストが指定された文字列を含むかチェック
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
disabled 属性を持っているかチェック
Sourcepub fn is_required(&self) -> bool
pub fn is_required(&self) -> bool
required 属性を持っているかチェック
Sourcepub fn is_readonly(&self) -> bool
pub fn is_readonly(&self) -> bool
readonly 属性を持っているかチェック
Sourcepub fn is_checked(&self) -> bool
pub fn is_checked(&self) -> bool
checked 属性を持っているかチェック
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