[][src]Module xml_dom::level2::convert

Provides safe RefNode conversion functions.

Note that all of the as_{name} functions work as follows.

  • If the node_type corresponds to the correct type, it returns OK.
  • If the node_type does not correspond to the correct type, it returns Error::InvalidState.
  • If the node_type is not implemented it returns Error::NotSupported.

Functions

as_attribute

Safely cast the specified RefNode into a Ref type.

as_attribute_mut

Safely cast the specified RefNode into a mutable Ref type.

as_cdata_section

Safely cast the specified RefNode into a Ref type.

as_cdata_section_mut

Safely cast the specified RefNode into a mutable Ref type.

as_character_data

Safely cast the specified RefNode into a Text.

as_character_data_mut

Safely cast the specified RefNode into a mutable Text.

as_comment

Safely cast the specified RefNode into a Ref type.

as_comment_mut

Safely cast the specified RefNode into a mutable Ref type.

as_document

Safely cast the specified RefNode into a Ref type.

as_document_fragment

Safely cast the specified RefNode into a Ref type.

as_document_fragment_mut

Safely cast the specified RefNode into a mutable Ref type.

as_document_mut

Safely cast the specified RefNode into a mutable Ref type.

as_document_type

Safely cast the specified RefNode into a Ref type.

as_document_type_mut

Safely cast the specified RefNode into a mutable Ref type.

as_element

Safely cast the specified RefNode into a Ref type.

as_element_mut

Safely cast the specified RefNode into a mutable Ref type.

as_entity

Safely cast the specified RefNode into a Ref type.

as_entity_mut

Safely cast the specified RefNode into a mutable Ref type.

as_entity_reference

Safely cast the specified RefNode into a Ref type.

as_entity_reference_mut

Safely cast the specified RefNode into a mutable Ref type.

as_notation

Safely cast the specified RefNode into a Ref type.

as_notation_mut

Safely cast the specified RefNode into a mutable Ref type.

as_processing_instruction

Safely cast the specified RefNode into a Ref type.

as_processing_instruction_mut

Safely cast the specified RefNode into a mutable Ref type.

as_text

Safely cast the specified RefNode into a Ref type.

as_text_mut

Safely cast the specified RefNode into a mutable Ref type.

is_attribute

Determines if the specified node is of the correct node type.

is_cdata_section

Determines if the specified node is of the correct node type.

is_character_data

Determines if the specified node is a type of CharacterData.

is_comment

Determines if the specified node is of the correct node type.

is_document

Determines if the specified node is of the correct node type.

is_document_fragment

Determines if the specified node is of the correct node type.

is_document_type

Determines if the specified node is of the correct node type.

is_element

Determines if the specified node is of the correct node type.

is_entity_

Determines if the specified node is of the correct node type.

is_entity_reference

Determines if the specified node is of the correct node type.

is_notation

Determines if the specified node is of the correct node type.

is_processing_instruction

Determines if the specified node is of the correct node type.

is_text

Determines if the specified node is of the correct node type.

Type Definitions

MutRefAttribute

Mutable Ref type for mutable dynamic trait cast

MutRefCDataSection

Mutable Ref type for mutable dynamic trait cast

MutRefCharacterData

Mutable Ref type for mutable dynamic trait cast

MutRefComment

Mutable Ref type for mutable dynamic trait cast

MutRefDocument

Mutable Ref type for mutable dynamic trait cast

MutRefDocumentFragment

Mutable Ref type for mutable dynamic trait cast

MutRefDocumentType

Mutable Ref type for mutable dynamic trait cast

MutRefElement

Mutable Ref type for mutable dynamic trait cast

MutRefEntity

Mutable Ref type for mutable dynamic trait cast

MutRefEntityReference

Mutable Ref type for mutable dynamic trait cast

MutRefNotation

Mutable Ref type for mutable dynamic trait cast

MutRefProcessingInstruction

Mutable Ref type for mutable dynamic trait cast

MutRefText

Mutable Ref type for mutable dynamic trait cast

RefAttribute

Ref type for dynamic trait cast

RefCDataSection

Ref type for dynamic trait cast

RefCharacterData

Ref type for dynamic trait cast

RefComment

Ref type for dynamic trait cast

RefDocument

Ref type for dynamic trait cast

RefDocumentFragment

Ref type for dynamic trait cast

RefDocumentType

Ref type for dynamic trait cast

RefElement

Ref type for dynamic trait cast

RefEntity

Ref type for dynamic trait cast

RefEntityReference

Ref type for dynamic trait cast

RefNotation

Ref type for dynamic trait cast

RefProcessingInstruction

Ref type for dynamic trait cast

RefText

Ref type for dynamic trait cast