[−][src]Type Definition xml_dom::RefNode
type RefNode = RcRefCell<NodeImpl>;
Opaque DOM tree node reference. This is the type used by this implementation as the concrete
type for the NodeRef
associated type in the Node
trait.
This is the common response type for DOM actions and can be cast to specific traits either
by-hand or using the xml_dom::convert
module. Also, note that this type
supportsPartialEq
and so two nodes
can be tested to ensure they are the same.
Trait Implementations
impl Attribute for RefNode
[src]
fn value(&self) -> Option<String>
[src]
fn set_value(&mut self, value: &str) -> Result<()>
[src]
fn unset_value(&mut self) -> Result<()>
[src]
fn specified(&self) -> bool
[src]
impl CDataSection for RefNode
[src]
impl CharacterData for RefNode
[src]
fn substring(&self, offset: usize, count: usize) -> Result<String>
[src]
fn append(&mut self, new_data: &str) -> Result<()>
[src]
fn insert(&mut self, offset: usize, new_data: &str) -> Result<()>
[src]
fn delete(&mut self, offset: usize, count: usize) -> Result<()>
[src]
fn replace(
&mut self,
offset: usize,
count: usize,
replace_data: &str
) -> Result<()>
[src]
&mut self,
offset: usize,
count: usize,
replace_data: &str
) -> Result<()>
fn length(&self) -> usize
[src]
fn data(&self) -> Option<String>
[src]
fn set_data(&mut self, data: &str) -> Result<()>
[src]
fn unset_data(&mut self) -> Result<()>
[src]
impl Comment for RefNode
[src]
impl Display for RefNode
[src]
impl Document for RefNode
[src]
fn doc_type(&self) -> Option<RefNode>
[src]
fn document_element(&self) -> Option<RefNode>
[src]
fn implementation(&self) -> &dyn DOMImplementation<NodeRef = RefNode>
[src]
fn create_attribute(&self, name: &str) -> Result<RefNode>
[src]
fn create_attribute_with(&self, name: &str, value: &str) -> Result<RefNode>
[src]
fn create_attribute_ns(
&self,
namespace_uri: &str,
qualified_name: &str
) -> Result<RefNode>
[src]
&self,
namespace_uri: &str,
qualified_name: &str
) -> Result<RefNode>
fn create_cdata_section(&self, data: &str) -> Result<RefNode>
[src]
fn create_document_fragment(&self) -> Result<RefNode>
[src]
fn create_entity_reference(&self, name: &str) -> Result<RefNode>
[src]
fn create_comment(&self, data: &str) -> RefNode
[src]
fn create_element(&self, tag_name: &str) -> Result<RefNode>
[src]
fn create_element_ns(
&self,
namespace_uri: &str,
qualified_name: &str
) -> Result<RefNode>
[src]
&self,
namespace_uri: &str,
qualified_name: &str
) -> Result<RefNode>
fn create_processing_instruction(
&self,
target: &str,
data: Option<&str>
) -> Result<RefNode>
[src]
&self,
target: &str,
data: Option<&str>
) -> Result<RefNode>
fn create_text_node(&self, data: &str) -> RefNode
[src]
fn get_element_by_id(&self, id: &str) -> Option<RefNode>
[src]
fn get_elements_by_tag_name(&self, tag_name: &str) -> Vec<RefNode>
[src]
fn get_elements_by_tag_name_ns(
&self,
namespace_uri: &str,
local_name: &str
) -> Vec<RefNode>
[src]
&self,
namespace_uri: &str,
local_name: &str
) -> Vec<RefNode>
impl DocumentDecl for RefNode
[src]
fn xml_declaration(&self) -> Option<XmlDecl>
[src]
fn set_xml_declaration(&mut self, xml_decl: XmlDecl) -> Result<()>
[src]
impl DocumentFragment for RefNode
[src]
impl DocumentType for RefNode
[src]
fn entities(&self) -> HashMap<Name, Self::NodeRef, RandomState>
[src]
fn notations(&self) -> HashMap<Name, Self::NodeRef, RandomState>
[src]
fn public_id(&self) -> Option<String>
[src]
fn system_id(&self) -> Option<String>
[src]
fn internal_subset(&self) -> Option<String>
[src]
impl Element for RefNode
[src]
fn get_attribute(&self, name: &str) -> Option<String>
[src]
fn set_attribute(&mut self, name: &str, value: &str) -> Result<()>
[src]
fn remove_attribute(&mut self, name: &str) -> Result<()>
[src]
fn get_attribute_node(&self, name: &str) -> Option<RefNode>
[src]
fn set_attribute_node(&mut self, new_attribute: RefNode) -> Result<RefNode>
[src]
fn remove_attribute_node(&mut self, old_attribute: RefNode) -> Result<RefNode>
[src]
fn get_elements_by_tag_name(&self, tag_name: &str) -> Vec<RefNode>
[src]
fn get_attribute_ns(
&self,
namespace_uri: &str,
local_name: &str
) -> Option<String>
[src]
&self,
namespace_uri: &str,
local_name: &str
) -> Option<String>
fn set_attribute_ns(
&mut self,
namespace_uri: &str,
qualified_name: &str,
value: &str
) -> Result<()>
[src]
&mut self,
namespace_uri: &str,
qualified_name: &str,
value: &str
) -> Result<()>
fn remove_attribute_ns(
&mut self,
namespace_uri: &str,
local_name: &str
) -> Result<()>
[src]
&mut self,
namespace_uri: &str,
local_name: &str
) -> Result<()>
fn get_attribute_node_ns(
&self,
namespace_uri: &str,
local_name: &str
) -> Option<RefNode>
[src]
&self,
namespace_uri: &str,
local_name: &str
) -> Option<RefNode>
fn set_attribute_node_ns(&mut self, new_attribute: RefNode) -> Result<RefNode>
[src]
fn get_elements_by_tag_name_ns(
&self,
namespace_uri: &str,
local_name: &str
) -> Vec<RefNode>
[src]
&self,
namespace_uri: &str,
local_name: &str
) -> Vec<RefNode>
fn has_attribute(&self, name: &str) -> bool
[src]
fn has_attribute_ns(&self, namespace_uri: &str, local_name: &str) -> bool
[src]
fn tag_name(&self) -> String
[src]
impl Entity for RefNode
[src]
fn public_id(&self) -> Option<String>
[src]
fn system_id(&self) -> Option<String>
[src]
fn notation_name(&self) -> Option<String>
[src]
impl EntityReference for RefNode
[src]
impl Namespaced for RefNode
[src]
fn contains_mapping(&self, prefix: Option<&str>) -> bool
[src]
fn get_namespace(&self, prefix: Option<&str>) -> Option<String>
[src]
fn resolve_namespace(&self, prefix: Option<&str>) -> Option<String>
[src]
fn contains_mapped_namespace(&self, namespace_uri: &str) -> bool
[src]
fn get_prefix(&self, namespace_uri: &str) -> Option<Option<String>>
[src]
fn resolve_prefix(&self, namespace_uri: &str) -> Option<Option<String>>
[src]
impl Node for RefNode
[src]
type NodeRef = RefNode
The opaque reference type that wraps the implementation of a node within the DOM. Read more
fn name(&self) -> Name
[src]
fn node_value(&self) -> Option<String>
[src]
fn set_node_value(&mut self, value: &str) -> Result<()>
[src]
fn unset_node_value(&mut self) -> Result<()>
[src]
fn node_type(&self) -> NodeType
[src]
fn parent_node(&self) -> Option<RefNode>
[src]
fn child_nodes(&self) -> Vec<RefNode>
[src]
fn first_child(&self) -> Option<RefNode>
[src]
fn last_child(&self) -> Option<RefNode>
[src]
fn previous_sibling(&self) -> Option<RefNode>
[src]
fn next_sibling(&self) -> Option<RefNode>
[src]
fn attributes(&self) -> HashMap<Name, RefNode, RandomState>
[src]
fn owner_document(&self) -> Option<RefNode>
[src]
fn insert_before(
&mut self,
new_child: RefNode,
ref_child: Option<RefNode>
) -> Result<RefNode>
[src]
&mut self,
new_child: RefNode,
ref_child: Option<RefNode>
) -> Result<RefNode>
fn replace_child(
&mut self,
new_child: RefNode,
old_child: RefNode
) -> Result<RefNode>
[src]
&mut self,
new_child: RefNode,
old_child: RefNode
) -> Result<RefNode>