pub enum TargetElement {
Body,
Element(Element),
TagName(String),
Id(String),
}
Expand description
Indicates the target element to which the Terminal instance should be bound to in DOM (WASM-browser only)
Variants§
Body
Bind to the document body
Element(Element)
Bind to a specific supplied web_sys::Element
TagName(String)
Bind to the element with a specific tag name
Id(String)
Bind to the element with a specific id
Auto Trait Implementations§
impl Freeze for TargetElement
impl RefUnwindSafe for TargetElement
impl !Send for TargetElement
impl !Sync for TargetElement
impl Unpin for TargetElement
impl UnwindSafe for TargetElement
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