pub struct Dom { /* private fields */ }
Implementations§
Source§impl Dom
impl Dom
pub fn new(target: Element) -> Self
pub fn new_tag(tag: &str) -> Self
pub fn rc_refcell(self) -> Rc<RefCell<Self>>
pub fn rc(self) -> Rc<Self>
pub fn set_style_text(&self, style: &str) -> &Self
pub fn set_text(&self, text: &str) -> &Self
pub fn onclick(&self, handle: Box<dyn FnMut(Event)>) -> &Self
pub fn oninput(&self, handle: Box<dyn FnMut(Event)>) -> &Self
pub fn value(&self) -> String
pub fn get_string(&self, name: &str) -> String
pub fn get_element_by_id(id: &str) -> Option<Dom>
pub fn get_current_target(e: Event) -> Self
pub fn append_child(&self, target: &Dom) -> &Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dom
impl RefUnwindSafe for Dom
impl !Send for Dom
impl !Sync for Dom
impl Unpin for Dom
impl UnwindSafe for Dom
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