pub struct DocumentFragmentRef(/* private fields */);Expand description
Wrapper of Rc<RefCell<DocumentFragment>>.
Trait Implementations§
Source§impl Clone for DocumentFragmentRef
impl Clone for DocumentFragmentRef
Source§fn clone(&self) -> DocumentFragmentRef
fn clone(&self) -> DocumentFragmentRef
Returns a duplicate 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 From<DocumentFragmentRef> for NodeRef
impl From<DocumentFragmentRef> for NodeRef
Source§fn from(value: DocumentFragmentRef) -> Self
fn from(value: DocumentFragmentRef) -> Self
Converts to this type from the input type.
Source§impl From<Rc<RefCell<DocumentFragment>>> for DocumentFragmentRef
impl From<Rc<RefCell<DocumentFragment>>> for DocumentFragmentRef
Source§impl Node for DocumentFragmentRef
impl Node for DocumentFragmentRef
Source§fn set_node_value(&mut self, _: impl Into<String>) -> Result<(), DOMException>
fn set_node_value(&mut self, _: impl Into<String>) -> Result<(), DOMException>
Source§fn first_child(&self) -> Option<NodeRef>
fn first_child(&self) -> Option<NodeRef>
Implementation of
firstChild attribute. Read moreSource§fn owner_document(&self) -> Option<DocumentRef>
fn owner_document(&self) -> Option<DocumentRef>
Implementation of
ownerDocument attribute. Read moreSource§fn is_same_node(&self, other: &NodeRef) -> bool
fn is_same_node(&self, other: &NodeRef) -> bool
Implementation of
isSameNode method. Read moreSource§fn lookup_prefix(&self, _ns_uri: &str) -> Option<Rc<str>>
fn lookup_prefix(&self, _ns_uri: &str) -> Option<Rc<str>>
Implementation of
lookupPrefix method. Read moreSource§fn is_default_namespace(&self, _ns_uri: &str) -> bool
fn is_default_namespace(&self, _ns_uri: &str) -> bool
Implementation of
isDefaultNamespace method. Read moreSource§fn lookup_namespace_uri(&self, _prefix: Option<&str>) -> Option<Rc<str>>
fn lookup_namespace_uri(&self, _prefix: Option<&str>) -> Option<Rc<str>>
Implementation of
lookupNamespaceURI method. Read moreSource§fn set_user_data(
&mut self,
key: impl Into<String>,
data: DOMUserData,
handler: Option<Arc<dyn UserDataHandler>>,
) -> Option<DOMUserData>
fn set_user_data( &mut self, key: impl Into<String>, data: DOMUserData, handler: Option<Arc<dyn UserDataHandler>>, ) -> Option<DOMUserData>
Implementation of
setUserData method. Read moreSource§fn get_user_data(&self, key: &str) -> Option<DOMUserData>
fn get_user_data(&self, key: &str) -> Option<DOMUserData>
Implementation of
getUserData method. Read moreSource§fn is_read_only(&self) -> bool
fn is_read_only(&self) -> bool
Check if this node is a read-only node. Read more
Source§fn parent_node(&self) -> Option<NodeRef>
fn parent_node(&self) -> Option<NodeRef>
Implementation of
parentNode attribute. Read moreSource§fn child_nodes(&self) -> ChildNodesList<NodeRef>
fn child_nodes(&self) -> ChildNodesList<NodeRef>
Implementation of
childNodes attribute. Read moreSource§fn previous_sibling(&self) -> Option<NodeRef>
fn previous_sibling(&self) -> Option<NodeRef>
Implementation of
previousSibling attribute. Read moreSource§fn next_sibling(&self) -> Option<NodeRef>
fn next_sibling(&self) -> Option<NodeRef>
Implementation of
nextSibling attribute. Read moreSource§fn attributes(&self) -> Option<AttributeMap>
fn attributes(&self) -> Option<AttributeMap>
Implementation of
attributes attribute. Read moreSource§fn insert_before(
&mut self,
new_child: NodeRef,
ref_child: Option<NodeRef>,
) -> Result<NodeRef, DOMException>
fn insert_before( &mut self, new_child: NodeRef, ref_child: Option<NodeRef>, ) -> Result<NodeRef, DOMException>
Implementation of
insertBefore method. Read moreSource§fn replace_child(
&mut self,
new_child: NodeRef,
old_child: NodeRef,
) -> Result<NodeRef, DOMException>
fn replace_child( &mut self, new_child: NodeRef, old_child: NodeRef, ) -> Result<NodeRef, DOMException>
Implementation of
replaceChild method. Read moreSource§fn remove_child(&mut self, old_child: NodeRef) -> Result<NodeRef, DOMException>
fn remove_child(&mut self, old_child: NodeRef) -> Result<NodeRef, DOMException>
Implementation of
removeChild method. Read moreSource§fn append_child(&mut self, new_child: NodeRef) -> Result<NodeRef, DOMException>
fn append_child(&mut self, new_child: NodeRef) -> Result<NodeRef, DOMException>
Implementation of
appendChild method. Read moreSource§fn has_child_nodes(&self) -> bool
fn has_child_nodes(&self) -> bool
Implementation of
hasChildNodes method. Read moreSource§fn is_supported(&self, feature: &str, version: Option<&str>) -> bool
fn is_supported(&self, feature: &str, version: Option<&str>) -> bool
Implementation of
isSupported attribute. Read moreSource§fn namespace_uri(&self) -> Option<Rc<str>>
fn namespace_uri(&self) -> Option<Rc<str>>
Implementation of
namespaceURI attribute. Read moreSource§fn set_prefix(
&mut self,
_prefix: Option<impl Into<Rc<str>>>,
) -> Result<(), DOMException>
fn set_prefix( &mut self, _prefix: Option<impl Into<Rc<str>>>, ) -> Result<(), DOMException>
Source§fn has_attributes(&self) -> bool
fn has_attributes(&self) -> bool
Implementation of
hasAttributes method. Read moreSource§fn compare_document_position(&self, other: &NodeRef) -> DocumentPosition
fn compare_document_position(&self, other: &NodeRef) -> DocumentPosition
Implementation of
compareDocumentPosition method. Read moreSource§fn text_content(&self) -> Option<String>
fn text_content(&self) -> Option<String>
Implementation of
textContent attribute. Read moreSource§fn set_text_content(
&mut self,
text: impl Into<String>,
) -> Result<(), DOMException>
fn set_text_content( &mut self, text: impl Into<String>, ) -> Result<(), DOMException>
Implementation of
textContent attribute. Read moreSource§fn is_equal_node(&self, arg: &NodeRef) -> bool
fn is_equal_node(&self, arg: &NodeRef) -> bool
Implementation of
isEqualNode method. Read moreSource§fn get_feature(&self, feature: &str, version: Option<&str>) -> Option<Self>
fn get_feature(&self, feature: &str, version: Option<&str>) -> Option<Self>
Implementation of
getFeature method. Read moreAuto Trait Implementations§
impl Freeze for DocumentFragmentRef
impl !RefUnwindSafe for DocumentFragmentRef
impl !Send for DocumentFragmentRef
impl !Sync for DocumentFragmentRef
impl Unpin for DocumentFragmentRef
impl !UnwindSafe for DocumentFragmentRef
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