[−][src]Struct ucd_parse::UnicodeData
Represents a single row in the UnicodeData.txt
file.
These fields were taken from UAX44, Table 9, as part of the documentation
for the
UnicodeData.txt
file.
Fields
codepoint: Codepoint
The codepoint corresponding to this row.
name: String
The name of this codepoint.
general_category: String
The "general category" of this codepoint.
canonical_combining_class: u8
The class of this codepoint used in the Canonical Ordering Algorithm.
Note that some classes map to a particular symbol. See UAX44, Table 15.
bidi_class: String
The bidirectional class of this codepoint.
Possible values are listed in UAX44, Table 13.
decomposition: UnicodeDataDecomposition
The decomposition mapping for this codepoint. This includes its formatting tag (if present).
numeric_type_decimal: Option<u8>
A decimal numeric representation of this codepoint, if it has the
property Numeric_Type=Decimal
.
numeric_type_digit: Option<u8>
A decimal numeric representation of this codepoint, if it has the
property Numeric_Type=Digit
. Note that while this field is still
populated for existing codepoints, no new codepoints will have this
field populated.
numeric_type_numeric: Option<UnicodeDataNumeric>
A decimal or rational numeric representation of this codepoint, if it
has the property Numeric_Type=Numeric
.
bidi_mirrored: bool
A boolean indicating whether this codepoint is "mirrored" in bidirectional text.
unicode1_name: String
The "old" Unicode 1.0 or ISO 6429 name of this codepoint. Note that
this field is empty unless it is significantly different from
the name
field.
iso_comment: String
The ISO 10464 comment field. This no longer contains any non-NULL values.
simple_uppercase_mapping: Option<Codepoint>
This codepoint's simple uppercase mapping, if it exists.
simple_lowercase_mapping: Option<Codepoint>
This codepoint's simple lowercase mapping, if it exists.
simple_titlecase_mapping: Option<Codepoint>
This codepoint's simple titlecase mapping, if it exists.
Methods
impl UnicodeData
[src]
pub fn is_range_start(&self) -> bool
[src]
Returns true if and only if this record corresponds to the start of a range.
pub fn is_range_end(&self) -> bool
[src]
Returns true if and only if this record corresponds to the end of a range.
Trait Implementations
impl Clone for UnicodeData
[src]
fn clone(&self) -> UnicodeData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UnicodeData
[src]
impl Default for UnicodeData
[src]
fn default() -> UnicodeData
[src]
impl Display for UnicodeData
[src]
impl Eq for UnicodeData
[src]
impl FromStr for UnicodeData
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(line: &str) -> Result<UnicodeData, Error>
[src]
impl PartialEq<UnicodeData> for UnicodeData
[src]
fn eq(&self, other: &UnicodeData) -> bool
[src]
fn ne(&self, other: &UnicodeData) -> bool
[src]
impl StructuralEq for UnicodeData
[src]
impl StructuralPartialEq for UnicodeData
[src]
impl UcdFile for UnicodeData
[src]
fn relative_file_path() -> &'static Path
[src]
fn file_path<P: AsRef<Path>>(ucd_dir: P) -> PathBuf
[src]
fn from_dir<P: AsRef<Path>>(
ucd_dir: P
) -> Result<UcdLineParser<File, Self>, Error>
[src]
ucd_dir: P
) -> Result<UcdLineParser<File, Self>, Error>
impl UcdFileByCodepoint for UnicodeData
[src]
fn codepoints(&self) -> CodepointIter
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnicodeData
impl Send for UnicodeData
impl Sync for UnicodeData
impl Unpin for UnicodeData
impl UnwindSafe for UnicodeData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,