pub struct JSRef<'a> { /* private fields */ }
Methods from Deref<Target = HtmlNode<'a>>§
pub fn root_ref(&self) -> JSRef<'a>
pub fn tagname(&self) -> String
pub fn focus(&self)
pub fn html_set(&self, s: &str)
pub fn html_get(&self) -> String
pub fn class_get(&self) -> HashSet<String>
pub fn class_add(&self, s: &str)
pub fn class_remove(&self, s: &str)
pub fn parent(&self) -> Option<HtmlNode<'a>>
pub fn data_set(&self, s: &str, v: &str)
pub fn data_get(&self, s: &str) -> Option<String>
pub fn style_set_str(&self, s: &str, v: &str)
pub fn style_get_str(&self, s: &str) -> String
pub fn prop_set_i32(&self, s: &str, v: i32)
pub fn prop_set_str(&self, s: &str, v: &str)
pub fn prop_get_i32(&self, s: &str) -> i32
pub fn prop_get_str(&self, s: &str) -> String
pub fn append(&self, s: &HtmlNode<'_>)
pub fn html_append(&self, s: &str)
pub fn html_prepend(&self, s: &str)
pub fn on<F: FnMut(Event<'_>) + 'a>(&self, s: &str, f: F)
pub fn captured_on<F: FnMut(Event<'_>) + 'a>(&self, s: &str, f: F)
pub fn remove_self(&self)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for JSRef<'a>
impl<'a> !RefUnwindSafe for JSRef<'a>
impl<'a> !Send for JSRef<'a>
impl<'a> !Sync for JSRef<'a>
impl<'a> Unpin for JSRef<'a>
impl<'a> !UnwindSafe for JSRef<'a>
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