Struct web_sys::DocumentType
source · #[repr(transparent)]pub struct DocumentType { /* private fields */ }
Expand description
The DocumentType
object
This API requires the following crate features to be activated: DocumentType
Implementations§
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
sourcepub fn after_with_node_0(&self) -> Result<(), JsValue>
pub fn after_with_node_0(&self) -> Result<(), JsValue>
The after()
method
This API requires the following crate features to be activated: DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
sourcepub fn after_with_str_0(&self) -> Result<(), JsValue>
pub fn after_with_str_0(&self) -> Result<(), JsValue>
The after()
method
This API requires the following crate features to be activated: DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
sourcepub fn before_with_node_0(&self) -> Result<(), JsValue>
pub fn before_with_node_0(&self) -> Result<(), JsValue>
The before()
method
This API requires the following crate features to be activated: DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
sourcepub fn before_with_str_0(&self) -> Result<(), JsValue>
pub fn before_with_str_0(&self) -> Result<(), JsValue>
The before()
method
This API requires the following crate features to be activated: DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
sourcepub fn replace_with_with_node_0(&self) -> Result<(), JsValue>
pub fn replace_with_with_node_0(&self) -> Result<(), JsValue>
The replaceWith()
method
This API requires the following crate features to be activated: DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
sourcepub fn replace_with_with_str_0(&self) -> Result<(), JsValue>
pub fn replace_with_with_str_0(&self) -> Result<(), JsValue>
The replaceWith()
method
This API requires the following crate features to be activated: DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
source§impl DocumentType
impl DocumentType
Trait Implementations§
source§impl AsRef<EventTarget> for DocumentType
impl AsRef<EventTarget> for DocumentType
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<JsValue> for DocumentType
impl AsRef<JsValue> for DocumentType
source§impl AsRef<Node> for DocumentType
impl AsRef<Node> for DocumentType
source§impl AsRef<Object> for DocumentType
impl AsRef<Object> for DocumentType
source§impl Clone for DocumentType
impl Clone for DocumentType
source§fn clone(&self) -> DocumentType
fn clone(&self) -> DocumentType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DocumentType
impl Debug for DocumentType
source§impl From<DocumentType> for EventTarget
impl From<DocumentType> for EventTarget
source§fn from(obj: DocumentType) -> EventTarget
fn from(obj: DocumentType) -> EventTarget
Converts to this type from the input type.
source§impl From<DocumentType> for JsValue
impl From<DocumentType> for JsValue
source§fn from(obj: DocumentType) -> JsValue
fn from(obj: DocumentType) -> JsValue
Converts to this type from the input type.
source§impl From<DocumentType> for Node
impl From<DocumentType> for Node
source§fn from(obj: DocumentType) -> Node
fn from(obj: DocumentType) -> Node
Converts to this type from the input type.
source§impl From<DocumentType> for Object
impl From<DocumentType> for Object
source§fn from(obj: DocumentType) -> Object
fn from(obj: DocumentType) -> Object
Converts to this type from the input type.
source§impl From<JsValue> for DocumentType
impl From<JsValue> for DocumentType
source§fn from(obj: JsValue) -> DocumentType
fn from(obj: JsValue) -> DocumentType
Converts to this type from the input type.
source§impl FromWasmAbi for DocumentType
impl FromWasmAbi for DocumentType
source§impl<'a> IntoWasmAbi for &'a DocumentType
impl<'a> IntoWasmAbi for &'a DocumentType
source§impl IntoWasmAbi for DocumentType
impl IntoWasmAbi for DocumentType
source§impl JsCast for DocumentType
impl JsCast for DocumentType
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
Performs a dynamic
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value is an instance of the type
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
source§impl OptionFromWasmAbi for DocumentType
impl OptionFromWasmAbi for DocumentType
source§impl<'a> OptionIntoWasmAbi for &'a DocumentType
impl<'a> OptionIntoWasmAbi for &'a DocumentType
source§impl OptionIntoWasmAbi for DocumentType
impl OptionIntoWasmAbi for DocumentType
source§impl RefFromWasmAbi for DocumentType
impl RefFromWasmAbi for DocumentType
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to
Self
are recovered from.§type Anchor = ManuallyDrop<DocumentType>
type Anchor = ManuallyDrop<DocumentType>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for DocumentType
impl Send for DocumentType
impl Sync for DocumentType
impl Unpin for DocumentType
impl UnwindSafe for DocumentType
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more