[][src]Struct xml_tokens::HexCharRef

pub struct HexCharRef { /* fields omitted */ }

A HexCharRef is contained by the Token::HexCharRef variant.

See the XML 1.1 specification for details.

Methods

impl HexCharRef[src]

pub fn new_from_string(
    hex_code: String,
    version: &XMLVersion
) -> Result<HexCharRef, ParseTokenError>
[src]

Create a HexCharRef from a hex_code string which corresponds to the hexidecimal representation of the unicode code point ot the desired character, which must match a legal Char in the specified XML version.

pub fn get_as_char(&self) -> char[src]

Return the character as a char value.

pub fn get_as_u32(&self) -> u32[src]

Return the character as a u32 value.

Trait Implementations

impl PartialEq<HexCharRef> for HexCharRef[src]

impl Debug for HexCharRef[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]