[−][src]Struct xml_tokens::HexCharRef
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]
hex_code: String,
version: &XMLVersion
) -> Result<HexCharRef, ParseTokenError>
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]
fn eq(&self, other: &HexCharRef) -> bool
[src]
fn ne(&self, other: &HexCharRef) -> bool
[src]
impl Debug for HexCharRef
[src]
Auto Trait Implementations
impl Send for HexCharRef
impl Unpin for HexCharRef
impl Sync for HexCharRef
impl UnwindSafe for HexCharRef
impl RefUnwindSafe for HexCharRef
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,