Struct web_sys::DocumentFragment
source · #[repr(transparent)]pub struct DocumentFragment { /* private fields */ }
Expand description
The DocumentFragment
object
This API requires the following crate features to be activated: DocumentFragment
Implementations§
source§impl DocumentFragment
impl DocumentFragment
sourcepub fn new() -> Result<DocumentFragment, JsValue>
pub fn new() -> Result<DocumentFragment, JsValue>
The new DocumentFragment(..)
constructor, creating a new instance of DocumentFragment
This API requires the following crate features to be activated: DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
sourcepub fn get_element_by_id(&self, element_id: &str) -> Option<Element>
pub fn get_element_by_id(&self, element_id: &str) -> Option<Element>
The getElementById()
method
This API requires the following crate features to be activated: DocumentFragment
, Element
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
sourcepub fn append_with_node_0(&self) -> Result<(), JsValue>
pub fn append_with_node_0(&self) -> Result<(), JsValue>
The append()
method
This API requires the following crate features to be activated: DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
sourcepub fn append_with_str_0(&self) -> Result<(), JsValue>
pub fn append_with_str_0(&self) -> Result<(), JsValue>
The append()
method
This API requires the following crate features to be activated: DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
sourcepub fn prepend_with_node_0(&self) -> Result<(), JsValue>
pub fn prepend_with_node_0(&self) -> Result<(), JsValue>
The prepend()
method
This API requires the following crate features to be activated: DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
sourcepub fn prepend_with_str_0(&self) -> Result<(), JsValue>
pub fn prepend_with_str_0(&self) -> Result<(), JsValue>
The prepend()
method
This API requires the following crate features to be activated: DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
source§impl DocumentFragment
impl DocumentFragment
sourcepub fn children(&self) -> HtmlCollection
pub fn children(&self) -> HtmlCollection
The children
getter
This API requires the following crate features to be activated: DocumentFragment
, HtmlCollection
source§impl DocumentFragment
impl DocumentFragment
sourcepub fn first_element_child(&self) -> Option<Element>
pub fn first_element_child(&self) -> Option<Element>
The firstElementChild
getter
This API requires the following crate features to be activated: DocumentFragment
, Element
source§impl DocumentFragment
impl DocumentFragment
sourcepub fn last_element_child(&self) -> Option<Element>
pub fn last_element_child(&self) -> Option<Element>
The lastElementChild
getter
This API requires the following crate features to be activated: DocumentFragment
, Element
source§impl DocumentFragment
impl DocumentFragment
sourcepub fn child_element_count(&self) -> u32
pub fn child_element_count(&self) -> u32
The childElementCount
getter
This API requires the following crate features to be activated: DocumentFragment
Trait Implementations§
source§impl AsRef<DocumentFragment> for ShadowRoot
impl AsRef<DocumentFragment> for ShadowRoot
source§fn as_ref(&self) -> &DocumentFragment
fn as_ref(&self) -> &DocumentFragment
source§impl AsRef<EventTarget> for DocumentFragment
impl AsRef<EventTarget> for DocumentFragment
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for DocumentFragment
impl AsRef<JsValue> for DocumentFragment
source§impl AsRef<Node> for DocumentFragment
impl AsRef<Node> for DocumentFragment
source§impl AsRef<Object> for DocumentFragment
impl AsRef<Object> for DocumentFragment
source§impl Clone for DocumentFragment
impl Clone for DocumentFragment
source§fn clone(&self) -> DocumentFragment
fn clone(&self) -> DocumentFragment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DocumentFragment
impl Debug for DocumentFragment
source§impl From<DocumentFragment> for EventTarget
impl From<DocumentFragment> for EventTarget
source§fn from(obj: DocumentFragment) -> EventTarget
fn from(obj: DocumentFragment) -> EventTarget
source§impl From<DocumentFragment> for JsValue
impl From<DocumentFragment> for JsValue
source§fn from(obj: DocumentFragment) -> JsValue
fn from(obj: DocumentFragment) -> JsValue
source§impl From<DocumentFragment> for Node
impl From<DocumentFragment> for Node
source§fn from(obj: DocumentFragment) -> Node
fn from(obj: DocumentFragment) -> Node
source§impl From<DocumentFragment> for Object
impl From<DocumentFragment> for Object
source§fn from(obj: DocumentFragment) -> Object
fn from(obj: DocumentFragment) -> Object
source§impl From<JsValue> for DocumentFragment
impl From<JsValue> for DocumentFragment
source§fn from(obj: JsValue) -> DocumentFragment
fn from(obj: JsValue) -> DocumentFragment
source§impl From<ShadowRoot> for DocumentFragment
impl From<ShadowRoot> for DocumentFragment
source§fn from(obj: ShadowRoot) -> DocumentFragment
fn from(obj: ShadowRoot) -> DocumentFragment
source§impl FromWasmAbi for DocumentFragment
impl FromWasmAbi for DocumentFragment
source§impl<'a> IntoWasmAbi for &'a DocumentFragment
impl<'a> IntoWasmAbi for &'a DocumentFragment
source§impl IntoWasmAbi for DocumentFragment
impl IntoWasmAbi for DocumentFragment
source§impl JsCast for DocumentFragment
impl JsCast for DocumentFragment
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
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,
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,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for DocumentFragment
impl OptionFromWasmAbi for DocumentFragment
source§impl<'a> OptionIntoWasmAbi for &'a DocumentFragment
impl<'a> OptionIntoWasmAbi for &'a DocumentFragment
source§impl OptionIntoWasmAbi for DocumentFragment
impl OptionIntoWasmAbi for DocumentFragment
source§impl RefFromWasmAbi for DocumentFragment
impl RefFromWasmAbi for DocumentFragment
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<DocumentFragment>
type Anchor = ManuallyDrop<DocumentFragment>
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 DocumentFragment
impl !Send for DocumentFragment
impl !Sync for DocumentFragment
impl Unpin for DocumentFragment
impl UnwindSafe for DocumentFragment
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
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
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more